7#ifndef MIDDLEBOX_BUFFERPOOLNODE_HH
8#define MIDDLEBOX_BUFFERPOOLNODE_HH
51 void resize(uint32_t newSize);
Class used to provide a pool of buffers that can have a dynamic size and be resized at any moment.
Definition bufferpool.hh:25
Class used to manage a buffer obtained via a BufferPool.
Definition bufferpoolnode.hh:21
uint32_t getSize() const
Return the size of the buffer.
Definition bufferpoolnode.cc:29
void resize(uint32_t newSize)
Resize the buffer. This operation is efficient if the capacity of the buffer is greater than the requ...
Definition bufferpoolnode.cc:34
~BufferPoolNode()
Destruct a BufferPoolNode.
Definition bufferpoolnode.cc:19
unsigned char * getBuffer()
Return the actual buffer (the area of memory). Note that the size of the buffer is random,...
Definition bufferpoolnode.cc:24
Vector template.
Definition vector.hh:111
Click's vector container template.