14 static Blob from_res (
const char *resource);
27 explicit operator bool ()
const;
Binary large object storage container.
static Blob from_file(const String &filename)
Create Blob by loading from filename.
const uint8 * bytes()
Retrieve the Blob's data as uint8 buffer.
static Blob from_url(const String &url)
Create Blob by opening a url.
String name()
Retrieve the Blob's filename or url.
const char * data()
Retrieve the Blob's data.
size_t size()
Retrieve the Blob's data size in bytes.
String string()
Copy Blob data into a zero terminated string.
Blob()
Construct an empty Blob.
The Anklang C++ API namespace.
uint8_t uint8
An 8-bit unsigned integer.
uint8 * zintern_decompress(unsigned int decompressed_size, const unsigned char *cdata, unsigned int cdata_size)
void zintern_free(uint8 *dc_data)
Free data returned from zintern_decompress().