Blob
class Blob : NSObject, NSCopying, @unchecked SendableRepresents a binary blob or BSON binary data in Firestore documents.
-
An 8-bit unsigned integer denoting the subtype of the data. Returns 0 for standard Blobs.
Declaration
Swift
var subtype: UInt8 { get } -
The binary data.
Declaration
Swift
var bytes: Data { get } -
Creates a standard
Blobwith the given data.Declaration
Swift
convenience init(bytes: Data)Parameters
bytesThe binary data.
-
Creates a BSON Binary type
Blobwith subtype 0.Declaration
Swift
convenience init(bsonBinary bytes: Data)Parameters
bytesThe binary data.
-
Creates a BSON Binary type
Blobwith the specified subtype.Declaration
Swift
convenience init(bsonBinary bytes: Data, subtype: UInt8)Parameters
bytesThe binary data.
subtypeAn 8-bit unsigned integer denoting the subtype of the data (must be [0, 255]).
-
Returns true if the given object is equal to this, and false otherwise.
Declaration
Swift
func isEqual(_ object: Any?) -> Bool -
Compares this Blob to another Blob.
Declaration
Swift
func compare(_ other: Blob) -> ComparisonResult