Data
public extension Data
Extensions on Data
that work with Path
rather than String
or URL
-
Initializes this
Data
with 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 : Pathish
Return Value
to
to allow chaining