#include <SizeBuffer.h>
Public Member Functions | |
SizeBuffer (uint capacity, uint length=0) | |
~SizeBuffer () | |
void | length (uint length) |
uint | length () const |
uint | capacity () const |
PBuffer | buffer () const |
Protected Attributes | |
boost::scoped_array< fennel::FixedBuffer > | buf |
uint | cap |
uint | len |
Definition at line 39 of file SizeBuffer.h.
Definition at line 29 of file SizeBuffer.cpp.
References buf, and FixedBuffer.
00030 : cap(capacity), 00031 len(length) 00032 { 00033 assert(length <= capacity); 00034 buf.reset(new fennel::FixedBuffer[capacity]); 00035 }
SizeBuffer::~SizeBuffer | ( | ) | [inline] |
void SizeBuffer::length | ( | uint | length | ) |
uint SizeBuffer::length | ( | ) | const |
uint SizeBuffer::capacity | ( | ) | const |
PBuffer SizeBuffer::buffer | ( | ) | const |
Definition at line 54 of file SizeBuffer.cpp.
References buf.
00055 { 00056 return buf.get(); 00057 }
boost::scoped_array<fennel::FixedBuffer> SizeBuffer::buf [protected] |
uint SizeBuffer::cap [protected] |
uint SizeBuffer::len [protected] |