2005/5/9

     
 

class FlexByteBuffer

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::FlexByteBuffer Class Reference

#include <ByteBuffer.h>

Inheritance diagram for acdk::lang::FlexByteBuffer:

acdk::lang::ReadWriteByteBuffer acdk::lang::CoreByteBuffer List of all members.

Detailed Description

A FlexBuffer can shrink and grow The FlexBuffer may also contains an internal limit.


Public Member Functions

virtual void append (byte t)=0
 append the given byte

virtual byte deleteAt (int idx)=0
 delete byte at given position and return it

virtual void insertAt (int idx, byte t)=0
 insert a given byte into given position

virtual int limit ()=0
 return -1 if this buffer has no write limit

virtual void ensureCapacity (int cap)=0
 for performance: ensure capacity

virtual void resize (int size, byte fill=0)=0
 set size of buffer if new size > as current size use fill byte to fill new elements

virtual void push (byte t)
 alias for the append(byte t) method

virtual byte pop ()
 removes the last byte and return it


Member Function Documentation

virtual void acdk::lang::FlexByteBuffer::append byte  t  )  [pure virtual]
 

append the given byte

Implemented in acdk::lang::CoreByteBuffer.

virtual byte acdk::lang::FlexByteBuffer::deleteAt int  idx  )  [pure virtual]
 

delete byte at given position and return it

Implemented in acdk::lang::CoreByteBuffer.

virtual void acdk::lang::FlexByteBuffer::ensureCapacity int  cap  )  [pure virtual]
 

for performance: ensure capacity

Implemented in acdk::lang::CoreByteBuffer.

virtual void acdk::lang::FlexByteBuffer::insertAt int  idx,
byte  t
[pure virtual]
 

insert a given byte into given position

Implemented in acdk::lang::CoreByteBuffer.

virtual int acdk::lang::FlexByteBuffer::limit  )  [pure virtual]
 

return -1 if this buffer has no write limit

Implemented in acdk::lang::CoreByteBuffer.

virtual byte acdk::lang::FlexByteBuffer::pop  )  [inline, virtual]
 

removes the last byte and return it

Reimplemented in acdk::lang::CoreByteBuffer.

virtual void acdk::lang::FlexByteBuffer::push byte  t  )  [inline, virtual]
 

alias for the append(byte t) method

Reimplemented in acdk::lang::CoreByteBuffer.

virtual void acdk::lang::FlexByteBuffer::resize int  size,
byte  fill = 0
[pure virtual]
 

set size of buffer if new size > as current size use fill byte to fill new elements

Implemented in acdk::lang::CoreByteBuffer.