Panda3D
Public Member Functions | List of all members
MemBuffer Class Reference
Inheritance diagram for MemBuffer:
RingBuffer Buffered_DatagramReader Buffered_DatagramWriter

Public Member Functions

 MemBuffer (void)
 default constructor More...
 
 MemBuffer (size_t len)
 Constructure to locall allocate a buffer. More...
 
 MemBuffer (char *data, size_t len)
 Constructure to use an external buffer. More...
 
virtual ~MemBuffer ()
 CLean UP a mess on Deletion. More...
 
char * GetBuffer (void)
 Access to the actual BUffer. More...
 
const char * GetBuffer (void) const
 
size_t GetBufferSize (void) const
 Access to the BUffer Size Information. More...
 
void GrowBuffer (size_t len)
 Grow a buffer is needed to get to a sertion size No care is made here to preserve convtent unlike a vector of chars. More...
 
bool InBufferRange (char *)
 
void SetBuffer (char *data, size_t len)
 Assigns a buffer. More...
 

Detailed Description

Definition at line 4 of file membuffer.h.

Constructor & Destructor Documentation

◆ MemBuffer() [1/3]

MemBuffer::MemBuffer ( void  )
inline

default constructor

Definition at line 31 of file membuffer.I.

◆ MemBuffer() [2/3]

MemBuffer::MemBuffer ( size_t  len)
inline

Constructure to locall allocate a buffer.

Definition at line 41 of file membuffer.I.

◆ MemBuffer() [3/3]

MemBuffer::MemBuffer ( char *  data,
size_t  len 
)
inline

Constructure to use an external buffer.

Definition at line 49 of file membuffer.I.

◆ ~MemBuffer()

MemBuffer::~MemBuffer ( )
inlinevirtual

CLean UP a mess on Deletion.

Definition at line 59 of file membuffer.I.

Member Function Documentation

◆ GetBuffer()

char * MemBuffer::GetBuffer ( void  )
inline

Access to the actual BUffer.

Definition at line 114 of file membuffer.I.

◆ GetBufferSize()

size_t MemBuffer::GetBufferSize ( void  ) const
inline

Access to the BUffer Size Information.

Definition at line 106 of file membuffer.I.

Referenced by RingBuffer::BufferAvailabe(), and RingBuffer::Compress().

◆ GrowBuffer()

void MemBuffer::GrowBuffer ( size_t  new_len)
inline

Grow a buffer is needed to get to a sertion size No care is made here to preserve convtent unlike a vector of chars.

Definition at line 83 of file membuffer.I.

◆ SetBuffer()

void MemBuffer::SetBuffer ( char *  data,
size_t  len 
)
inline

Assigns a buffer.

Definition at line 67 of file membuffer.I.


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