libktorrent  2.1.1
Public Types | Public Member Functions | List of all members
bt::Buffer Class Reference

#include <bufferpool.h>

Public Types

typedef boost::shared_array< bt::Uint8 > Data
 
typedef QSharedPointer< BufferPtr
 

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.
 

Detailed Description

Buffer object, extends boost shared_array with a size and capacity property.

Definition at line 58 of file bufferpool.h.


The documentation for this class was generated from the following file: