9 #import <Foundation/Foundation.h> 11 NS_ASSUME_NONNULL_BEGIN
30 - (nullable instancetype) initWithContentType: (NSString *)contentType
32 error: (NSError**)error;
39 - (nullable instancetype) initWithContentType: (NSString *)contentType
40 contentStream: (NSInputStream *)stream
41 error: (NSError**)error;
48 - (nullable instancetype) initWithContentType: (NSString *)contentType
49 fileURL: (NSURL*)fileURL
50 error: (NSError**)error;
56 @property (readonly, nonatomic, nullable) NSData*
content;
63 @property (readonly, nonatomic, nullable) NSString*
contentType;
66 @property (readonly, nonatomic) uint64_t
length;
69 @property (readonly, nonatomic, nullable) NSString*
digest;
72 @property (readonly, nonatomic) NSDictionary*
properties;
NSData * content
Gets the contents of a CBLBlob as a block of memory.
Definition: CBLBlob.h:56
NSString * digest
The cryptographic digest of this CBLBlob's contents, which uniquely identifies it.
Definition: CBLBlob.h:69
NSDictionary * properties
The metadata associated with this CBLBlob.
Definition: CBLBlob.h:72
NSString * contentType
The type of content this CBLBlob represents; by convention this is a MIME type.
Definition: CBLBlob.h:63
NSInputStream * contentStream
A stream of the content of a CBLBlob.
Definition: CBLBlob.h:60
uint64_t length
The binary length of this CBLBlob.
Definition: CBLBlob.h:66
A CBLBlob appears as a property of a CBLDocument; it contains arbitrary binary data, tagged with a MIME type.
Definition: CBLBlob.h:23
instancetype NS_UNAVAILABLE()