|
| CBLINLINE const CBLBlob * | CBLBlob_Retain (const CBLBlob *_cbl_nullable t) |
| CBLINLINE void | CBLBlob_Release (const CBLBlob *_cbl_nullable t) |
| bool | FLDict_IsBlob (FLDict _cbl_nullable) |
| | Returns true if a dictionary in a document is a blob reference.
|
| const CBLBlob *_cbl_nullable | FLDict_GetBlob (FLDict _cbl_nullable blobDict) |
| | Returns a CBLBlob object corresponding to a blob dictionary in a document.
|
| uint64_t | CBLBlob_Length (const CBLBlob *) |
| | Returns the length in bytes of a blob's content (from its length property).
|
| FLString | CBLBlob_ContentType (const CBLBlob *) |
| | Returns a blob's MIME type, if its metadata has a content_type property.
|
| FLString | CBLBlob_Digest (const CBLBlob *) |
| | Returns the cryptographic digest of a blob's content (from its digest property).
|
| FLDict | CBLBlob_Properties (const CBLBlob *) |
| | Returns a blob's metadata.
|
| _cbl_warn_unused FLStringResult | CBLBlob_CreateJSON (const CBLBlob *blob) |
| | Returns a blob's metadata as JSON.
|
| _cbl_warn_unused FLSliceResult | CBLBlob_Content (const CBLBlob *blob, CBLError *_cbl_nullable outError) |
| | Reads the blob's content into memory and returns them.
|
| _cbl_warn_unused CBLBlobReadStream *_cbl_nullable | CBLBlob_OpenContentStream (const CBLBlob *blob, CBLError *_cbl_nullable) |
| | Opens a stream for reading a blob's content.
|
| int | CBLBlobReader_Read (CBLBlobReadStream *stream, void *dst, size_t maxLength, CBLError *_cbl_nullable outError) |
| | Reads data from a blob.
|
| int64_t | CBLBlobReader_Seek (CBLBlobReadStream *stream, int64_t offset, CBLSeekBase base, CBLError *_cbl_nullable outError) |
| | Sets the position of a CBLBlobReadStream.
|
| uint64_t | CBLBlobReader_Position (CBLBlobReadStream *stream) |
| | Returns the current position of a CBLBlobReadStream.
|
| void | CBLBlobReader_Close (CBLBlobReadStream *_cbl_nullable) |
| | Closes a CBLBlobReadStream.
|
| bool | CBLBlob_Equals (CBLBlob *blob, CBLBlob *anotherBlob) |
| | Compares whether the two given blobs are equal based on their content.
|
| _cbl_warn_unused CBLBlob * | CBLBlob_CreateWithData (FLString contentType, FLSlice contents) |
| | Creates a new blob given its contents as a single block of data.
|
| _cbl_warn_unused CBLBlobWriteStream *_cbl_nullable | CBLBlobWriter_Create (CBLDatabase *db, CBLError *_cbl_nullable) |
| | Opens a stream for writing a new blob.
|
| void | CBLBlobWriter_Close (CBLBlobWriteStream *_cbl_nullable) |
| | Closes a blob-writing stream, if you need to give up without creating a CBLBlob.
|
| bool | CBLBlobWriter_Write (CBLBlobWriteStream *writer, const void *data, size_t length, CBLError *_cbl_nullable outError) |
| | Writes data to a new blob.
|
| _cbl_warn_unused CBLBlob * | CBLBlob_CreateWithStream (FLString contentType, CBLBlobWriteStream *writer) |
| | Creates a new blob after its data has been written to a CBLBlobWriteStream.
|
| CBLINLINE bool | FLValue_IsBlob (FLValue _cbl_nullable v) |
| | Returns true if a value in a document is a blob reference.
|
| CBLINLINE const CBLBlob *_cbl_nullable | FLValue_GetBlob (FLValue _cbl_nullable value) |
| | Instantiates a CBLBlob object corresponding to a blob dictionary in a document.
|
| void | FLSlot_SetBlob (FLSlot slot, CBLBlob *blob) |
| CBLINLINE void | FLMutableArray_SetBlob (FLMutableArray array, uint32_t index, CBLBlob *blob) |
| | Stores a blob reference into an array.
|
| CBLINLINE void | FLMutableArray_AppendBlob (FLMutableArray array, CBLBlob *blob) |
| | Appends a blob reference to an array.
|
| CBLINLINE void | FLMutableDict_SetBlob (FLMutableDict dict, FLString key, CBLBlob *blob) |
| | Stores a blob reference into a Dict.
|
| const CBLBlob *_cbl_nullable | CBLDatabase_GetBlob (CBLDatabase *db, FLDict properties, CBLError *_cbl_nullable outError) |
| | Get a CBLBlob object from the database using the CBLBlob properties.
|
| bool | CBLDatabase_SaveBlob (CBLDatabase *db, CBLBlob *blob, CBLError *_cbl_nullable outError) |
| | Save a new CBLBlob object into the database without associating it with any documents.
|