|
static constexpr std::array< const char *, 2 > | Columns = { "dict", "doc" } |
|
static constexpr size_t | RequiredAlignment = 8 |
|
Definition at line 293 of file ProjectFileIO.cpp.
◆ BufferedProjectBlobStream()
BufferedProjectBlobStream::BufferedProjectBlobStream |
( |
sqlite3 * |
db, |
|
|
const char * |
schema, |
|
|
const char * |
table, |
|
|
int64_t |
rowID |
|
) |
| |
|
inline |
Definition at line 298 of file ProjectFileIO.cpp.
311 {
312 }
BufferedStreamReader(size_t bufferSize=4096)
◆ HasMoreData()
bool BufferedProjectBlobStream::HasMoreData |
( |
| ) |
const |
|
inlineoverrideprotected |
◆ OpenBlob()
bool BufferedProjectBlobStream::OpenBlob |
( |
size_t |
index | ) |
|
|
inlineprivate |
Definition at line 315 of file ProjectFileIO.cpp.
316 {
318 {
320 return false;
321 }
322
325
327 }
static std::optional< SQLiteBlobStream > Open(sqlite3 *db, const char *schema, const char *table, const char *column, int64_t rowID, bool readOnly) noexcept
References Columns, mBlobStream, mDB, mRowID, mSchema, mTable, and SQLiteBlobStream::Open().
Referenced by ReadData().
◆ ReadData()
size_t BufferedProjectBlobStream::ReadData |
( |
void * |
buffer, |
|
|
size_t |
maxBytes |
|
) |
| |
|
inlineoverrideprotected |
Definition at line 343 of file ProjectFileIO.cpp.
344 {
346 {
348 return {};
349 }
350
351
352 maxBytes = std::min<size_t>(maxBytes, std::numeric_limits<int>::max());
353 auto bytesRead = static_cast<int>(maxBytes);
354
355 if (SQLITE_OK !=
mBlobStream->Read(buffer, bytesRead))
356 {
357
358
361
362 return 0;
363 }
364 else if (bytesRead == 0)
365 {
367 }
368
369 return static_cast<size_t>(bytesRead);
370 }
bool OpenBlob(size_t index)
References Columns, mBlobStream, mNextBlobIndex, and OpenBlob().
◆ Columns
constexpr std::array< const char *, 2 > BufferedProjectBlobStream::Columns = { "dict", "doc" } |
|
staticconstexpr |
◆ mBlobStream
◆ mDB
sqlite3* BufferedProjectBlobStream::mDB |
|
private |
◆ mNextBlobIndex
size_t BufferedProjectBlobStream::mNextBlobIndex { 0 } |
|
private |
◆ mRowID
const int64_t BufferedProjectBlobStream::mRowID |
|
private |
◆ mSchema
const char* BufferedProjectBlobStream::mSchema |
|
private |
◆ mTable
const char* BufferedProjectBlobStream::mTable |
|
private |
The documentation for this class was generated from the following file: