Bytes, which must be resolved "lazily" via get() and released via this object (destructor). Unlike void* style bytes, this may represent allocated resources and/or bytes that are only produced on demand. More...
#include <objectbox.hpp>
Public Member Functions | |
BytesLazy () | |
BytesLazy (OBX_bytes_lazy *cBytes) | |
BytesLazy (BytesLazy &&src) noexcept | |
BytesLazy (const BytesLazy &src)=delete | |
No copying allowed: OBX_bytes_lazy needs a single owner (no method to "clone" it). More... | |
~BytesLazy () | |
bool | hasBytes () |
bool | isNull () |
void | swap (BytesLazy &other) |
void | clear () |
Clears any bytes resources. More... | |
void | get (const void *&outBytes, size_t &outSize) const |
Gets the bytes and its size using the given "out" references. More... | |
size_t | size () |
Note that this will potentially resolve actual bytes just like get(). Also, it would be more efficient to only call get() to get everything in a single call. More... | |
Bytes, which must be resolved "lazily" via get() and released via this object (destructor). Unlike void* style bytes, this may represent allocated resources and/or bytes that are only produced on demand.
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
delete |
No copying allowed: OBX_bytes_lazy needs a single owner (no method to "clone" it).
|
inline |
|
inline |
Clears any bytes resources.
|
inline |
Gets the bytes and its size using the given "out" references.
|
inline |
|
inline |
|
inline |
|
inline |