A reference-counting, copy-on-write, threadsafe container for arbitrary binary data.
More...
|
| Blob () |
| Construct a new, empty Blob. More...
|
|
| Blob (byte_t *data, uint_t length, bool copy=true) |
| Construct a new Blob from a byte array. More...
|
|
| Blob (const Blob &other) |
| Copy constructor. More...
|
|
| Blob (const byte_t *data, uint_t length) |
| Construct a new Blob from a byte array. More...
|
|
| ~Blob () |
| Destructor. More...
|
|
uint_t | getLength () const |
| Get the length of the Blob. More...
|
|
uint_t | length () const |
| Get the length of the Blob. More...
|
|
void | setLength (uint_t length) |
| Set the length of the Blob. More...
|
|
byte_t * | getData () |
| Get a pointer to the beginning of the data in the Blob. More...
|
|
const byte_t * | getData () const |
| Get a pointer to the beginning of the data in the Blob. More...
|
|
Blob & | clear () |
| Clear the Blob. More...
|
|
bool | isEmpty () const |
| Test if the Blob is empty. More...
|
|
bool | isNull () const |
| Test if the Blob is null. More...
|
|
Blob & | append (const byte_t *data, uint_t length) |
| Append a byte array to the Blob. More...
|
|
Blob & | append (const char *str, uint_t length=0) |
| Append a character array to the Blob. More...
|
|
int | indexOf (byte_t b, uint_t fromIndex=0) const |
| Find the first occurrence of a given byte in the Blob. More...
|
|
int | indexOf (const byte_t *buf, uint_t length, uint_t fromIndex=0) const |
| Find the first occurrence of a given byte sequence in the Blob. More...
|
|
int | lastIndexOf (byte_t b, uint_t fromIndex=END) const |
| Find the last occurrence of a given byte in the Blob. More...
|
|
int | lastIndexOf (const byte_t *buf, uint_t length, uint_t fromIndex=END) const |
| Find the last occurrence of a given byte sequence in the Blob. More...
|
|
bool | contains (byte_t b) const |
| Determine if the Blob contains a given byte. More...
|
|
int | compareTo (const Blob &other) const |
| Compare this Blob to another. More...
|
|
Blob & | operator= (const Blob &other) |
| Assignment operator. More...
|
|
byte_t & | operator[] (int index) |
| Array index operator. More...
|
|
byte_t | operator[] (int index) const |
| Array index operator. More...
|
|
bool | operator! () const |
| Unary NOT operator. More...
|
|
Blob & | operator+= (byte_t b) |
| Append a byte onto the end of the Blob. More...
|
|
Blob & | operator+= (int v) |
| Append a value onto the end of the Blob. More...
|
|
Blob & | operator+= (const char *str) |
| Append a character string onto the end of the Blob. More...
|
|
Blob & | operator+= (const Blob &blob) |
| Append (a copy of) the contents of another Blob onto the end of the Blob. More...
|
|
Blob & | operator<< (byte_t val) |
| Append operator. More...
|
|
Blob & | operator<< (int val) |
| Append operator. More...
|
|
Blob & | operator<< (const char *str) |
| Append operator. More...
|
|
uint_t | hash (uint_t modulo=256) const |
| Compute a hashcode for the Blob. More...
|
|
A reference-counting, copy-on-write, threadsafe container for arbitrary binary data.
- Author
- Mark Lindner