Class representing a general-use binary blob. More...
#include <blob.h>
Public Member Functions | |
Blob () | |
Creates an empty blob. | |
Blob (const std::string &data) | |
Blob (const void *buf, size_t length) | |
char * | buf () |
Get pointer to the first byte of the binary blob. | |
const char * | buf () const |
Get const pointer to the first byte of the binary blob. | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
size_t | size () const |
void | swap (Blob &x) |
void | push_back (value_type val) |
bool | empty () const |
Blob & | operator= (const Blob &other) |
reference | operator[] (size_type pos) |
const_reference | operator[] (size_type pos) const |
char | getItem (size_type pos) const |
void | clear () |
Friends | |
bool | operator== (const Blob &a, const Blob &b) |
bool | operator< (const Blob &a, const Blob &b) |
bool | operator<= (const Blob &a, const Blob &b) |
bool | operator> (const Blob &a, const Blob &b) |
bool | operator>= (const Blob &a, const Blob &b) |