FIRBlob
@interface FIRBlob : NSObject <NSCopying>Represents 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
Objective-C
@property (nonatomic, readonly) uint8_t subtype; -
The binary data.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSData *_Nonnull bytes; -
Creates a standard
Blobwith the given data.Declaration
Objective-C
+ (nonnull instancetype)blobWithBytes:(nonnull NSData *)bytes;Parameters
bytesThe binary data.
-
Creates a BSON Binary type
Blobwith subtype 0.Declaration
Objective-C
+ (nonnull instancetype)blobWithBSONBinary:(nonnull NSData *)bytes;Parameters
bytesThe binary data.
-
Creates a BSON Binary type
Blobwith the specified subtype.Declaration
Objective-C
+ (nonnull instancetype)blobWithBSONBinary:(nonnull NSData *)bytes subtype:(uint8_t)subtype;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
Objective-C
- (BOOL)isEqual:(nullable id)object; -
Compares this Blob to another Blob.
Declaration
Objective-C
- (NSComparisonResult)compare:(nonnull FIRBlob *)other;