17class SQLITE_HELPERS_API
Blob final
20 explicit Blob(sqlite3_blob* blob)
noexcept;
31 int64_t
Size() const noexcept;
34 int64_t Read(
void* buffer, int64_t offset, int64_t bufferSize) const noexcept;
36 int64_t Write(const
void* buffer, int64_t offset, int64_t bufferSize) noexcept;
43 template<typename ContainerType>
44 ContainerType Read(int64_t offset = 0, int64_t bufferSize = -1)
const
47 bufferSize =
Size() - offset;
53 buffer.resize(bufferSize);
54 const auto bytesRead = Read(buffer.data(), offset, bufferSize);
55 buffer.resize(bytesRead);
61 sqlite3_blob* mBlob {};
A class representing a BLOB in a SQLite database.
A class representing a connection to a SQLite database.
SizeType< float > Size
Alias for SizeType<float>