#include <types.hpp>
Conversions | |
| Special conversions with auxiliary type to enable copies and assignments, similar to those used for std::auto_ptr. See http://www.josuttis.com/libbook/auto_ptr.html for a discussion. | |
| DataBuf (DataBufRef rhs) | |
| DataBuf & | operator= (DataBufRef rhs) |
| operator DataBufRef () | |
Public Member Functions | |
Manipulators | |
| DataBuf & | operator= (DataBuf &rhs) |
| Assignment operator. Transfers the buffer and releases the buffer at the original object similar to std::auto_ptr, i.e., the original object is modified. | |
| void | alloc (long size) |
| Allocate a data buffer of the given size. | |
| std::pair< byte *, long > | release () |
| Release ownership of the buffer to the caller. Returns the buffer as a data pointer and size pair, resets the internal buffer. | |
| void | reset (std::pair< byte *, long >=std::make_pair((byte *)(0), long(0))) |
| Reset value. | |
Public Attributes | |
| byte * | pData_ |
| Pointer to the buffer, 0 if none has been allocated. | |
| long | size_ |
| The current size of the buffer. | |
1.5.1