File
Holds information about the file.
Fields
id
String The unique identifier for the file.
This property returns the fileId from the info property of the file, converted to a String.
Static Methods
==(::)
Compares two File instances for equality.
This function compares several key properties of the two File instances, including info, privateMeta, publicMeta, authorPubKey, size, and statusCode.
Params
lhs
privmx.endpoint.store.File
The left-hand side File instance.
rhs
privmx.endpoint.store.File
The right-hand side File instance.
Returns
Bool ·
true if all relevant fields of both files are equal, otherwise false.
Methods
hash(into:)
Generates a hash value for the File instance.
This function combines the info property into the hash to uniquely identify the file.
Params
hasher
inout Hasher
The Hasher instance used to compute the hash value.
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.
This is documentation for PrivMX v2.2, which is no longer actively maintained.