wibble 1.1
|
#include <buffer.h>
Public Member Functions | |
Data () throw () | |
Data (size_t size) | |
Data (void *buf, size_t size, bool own=true) | |
Data (const void *buf, size_t size) | |
~Data () | |
void | ref () const throw () |
Increment the reference count for this object. | |
bool | unref () const throw () |
Decrement the reference count for this object, returning true when it reaches 0. | |
void | resize (size_t size) |
Resize (enlarging or shrinking it) the buffer to ‘size’ bytes. | |
bool | operator== (const Data &d) const throw () |
Compare the contents of two buffers. | |
bool | operator< (const Data &d) const throw () |
Compare the contents of two buffers. | |
Protected Attributes | |
int | _ref |
size_t | _size |
void * | _data |
Friends | |
class | Buffer |
|
inline |
wibble::sys::Buffer::Data::Data | ( | size_t | size | ) |
References _data, and wibble::sys::Buffer::size().
References _data, and wibble::sys::Buffer::size().
References _data, and wibble::sys::Buffer::size().
wibble::sys::Buffer::Data::~Data | ( | ) |
Compare the contents of two buffers.
Compare the contents of two buffers.
|
inline |
Increment the reference count for this object.
References _ref.
Referenced by wibble::sys::Buffer::Buffer(), wibble::sys::Buffer::Buffer(), wibble::sys::Buffer::Buffer(), wibble::sys::Buffer::operator=(), and wibble::sys::Buffer::resize().
Resize (enlarging or shrinking it) the buffer to ‘size’ bytes.
References wibble::sys::Buffer::size().
Referenced by wibble::sys::Buffer::resize().
|
inline |
Decrement the reference count for this object, returning true when it reaches 0.
References _ref.
Referenced by wibble::sys::Buffer::operator=(), wibble::sys::Buffer::resize(), and wibble::sys::Buffer::~Buffer().
|
protected |
Referenced by wibble::sys::Buffer::data(), wibble::sys::Buffer::data(), Data(), Data(), and Data().
|
protected |
Referenced by wibble::sys::Buffer::size().