Data
public extension Data
Extensions on Data that work with Path rather than String or URL
-
Initializes this
Datawith the contents of the provided path.Declaration
Swift
@inlinable init<P>(contentsOf path: P) throws where P : Pathish -
Declaration
Swift
@discardableResult @inlinable func write<P>(to: P, atomically: Bool = false) throws -> P where P : PathishReturn Value
toto allow chaining
View on GitHub
Data Extension Reference