|
Couchbase Lite C++
Couchbase Lite C++ API
|
A stream for reading a blob's content from the database. More...
#include <cbl++/Blob.hh>
Public Types | |
| using | SeekBase = CBLSeekBase |
| Alias for the C CBLSeekBase enum describing the reference point used by seek. | |
Public Member Functions | |
| BlobReadStream (Blob *blob) | |
| Opens a stream for reading a blob's content. | |
| ~BlobReadStream () | |
| Closes the underlying read stream. | |
| size_t | read (void *dst, size_t maxLength) |
| Reads data from a blob. | |
| int64_t | seek (int64_t offset, SeekBase base) |
| Sets the position of a CBLBlobReadStream. | |
| uint64_t | position () |
| Returns the current position of a CBLBlobReadStream. | |
A stream for reading a blob's content from the database.
Alias for the C CBLSeekBase enum describing the reference point used by seek.
|
inline |
Opens a stream for reading a blob's content.
| blob | The blob whose content will be read. |
|
inline |
Closes the underlying read stream.
|
inline |
Returns the current position of a CBLBlobReadStream.
|
inline |
Reads data from a blob.
| dst | The address to copy the read data to. |
| maxLength | The maximum number of bytes to read. |
|
inline |
Sets the position of a CBLBlobReadStream.
| offset | The byte offset in the stream (relative to the mode). |
| base | The base position from which the offset is calculated. |