libktorrent
2.2.0
|
#include <bufferpool.h>
Public Types | |
typedef boost::shared_array< bt::Uint8 > | Data |
typedef QSharedPointer< Buffer > | Ptr |
Public Member Functions | |
Buffer (Data data, bt::Uint32 fill, bt::Uint32 cap, QWeakPointer< BufferPool > pool) | |
bt::Uint32 | capacity () const |
Get the buffers capacity. | |
bt::Uint8 * | get () |
Get a pointer to the data. | |
void | setSize (bt::Uint32 s) |
Set the current size. | |
bt::Uint32 | size () const |
Get the current size. | |
Buffer object, extends boost shared_array with a size and capacity property.
Definition at line 58 of file bufferpool.h.