DittoAttachment
public class DittoAttachment : CBOREncodable, Hashable
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
-
The attachment’s metadata.
Declaration
Swift
public var metadata: [String : String] { get }
-
Undocumented
Declaration
Swift
public func encode() -> [UInt8]
-
Declaration
Swift
public static func == (lhs: DittoAttachment, rhs: DittoAttachment) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Returns the attachment’s data representation.
Throws
DittoSwiftError
.Declaration
Swift
public func getData() throws -> Data
Return Value
The attachment’s
Data
representation. -
Copies the attachment to the specified file path.
Throws
DittoSwiftError
.Declaration
Swift
public func copy(toPath path: String) throws