|
|
|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::lang::CoreByteBuffer Class Reference#include <ByteBuffer.h>
Inheritance diagram for acdk::lang::CoreByteBuffer:
List of all members.
Detailed Description
CoreByteBuffer is a standard implementation for a FlexByteBuffer.
|
Public Member Functions |
| | CoreByteBuffer (int size) |
| | create a buffer on given size element values are undefined
|
| | CoreByteBuffer (int size, int initCap, byte fillWith=0) |
| | create a byte buffer on given size and with initial capicity the elements are initialized with fillWith byte
|
| | CoreByteBuffer (const VectorType &array) |
| | CoreByteBuffer (const VectorType &array, int start, int end=-1) |
| RObject | clone () |
| virtual byte * | begin () |
| | for performance reasons the ByteBuffer implementation should support this method
|
| virtual byte * | end () |
| | for performance reasons the ByteBuffer implementation should support this method
|
| virtual bool | supportNativeIterator () |
| | begin() and end() are supported
|
| virtual int | length () |
| byte | get (int idx) |
| | returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException
|
| void | set (int idx, byte b) |
| | set the byte at given position May throw RuntimeException or ArrayIndexOutOfBoundsException
|
| virtual RReadByteBuffer | createReadSlice (int start=0, int end=-1, SliceType sliceType=ShadowSlice) |
| | creates a slice of this ByteBuffer
|
| virtual RWriteByteBuffer | createWriteSlice (int start=0, int end=-1, SliceType sliceType=ShadowSlice) |
| | creates a slice of this ByteBuffer
|
| virtual RReadWriteByteBuffer | createReadWriteSlice (int start=0, int end=-1, SliceType sliceType=ShadowSlice) |
| | creates a slice of this ByteBuffer
|
| virtual void | append (byte t) |
| | append the given byte
|
| virtual byte | deleteAt (int idx) |
| | delete byte at given position and return it
|
| virtual void | insertAt (int idx, byte t) |
| | insert a given byte into given position
|
| virtual int | limit () |
| | return -1 if this buffer has no write limit
|
| virtual void | resize (int size, byte fill=0) |
| | set size of buffer if new size > as current size use fill byte to fill new elements
|
| virtual void | ensureCapacity (int cap) |
| | for performance: ensure capacity
|
| virtual void | push (byte t) |
| | alias for the append(byte t) method
|
| virtual byte | pop () |
| | removes the last byte and return it
|
Protected Types |
typedef sys::core_vector<
byte > | VectorType |
Protected Attributes |
| VectorType | _array |
Member Typedef Documentation
Constructor & Destructor Documentation
| acdk::lang::CoreByteBuffer::CoreByteBuffer |
( |
int |
size |
) |
[inline] |
|
|
|
create a buffer on given size element values are undefined
|
| acdk::lang::CoreByteBuffer::CoreByteBuffer |
( |
int |
size, |
|
|
int |
initCap, |
|
|
byte |
fillWith = 0 |
|
) |
[inline] |
|
|
|
create a byte buffer on given size and with initial capicity the elements are initialized with fillWith byte
|
| acdk::lang::CoreByteBuffer::CoreByteBuffer |
( |
const VectorType & |
array |
) |
[inline] |
|
| acdk::lang::CoreByteBuffer::CoreByteBuffer |
( |
const VectorType & |
array, |
|
|
int |
start, |
|
|
int |
end = -1 |
|
) |
|
|
Member Function Documentation
| virtual void acdk::lang::CoreByteBuffer::append |
( |
byte |
t |
) |
[inline, virtual] |
|
| virtual byte* acdk::lang::CoreByteBuffer::begin |
( |
|
) |
[inline, virtual] |
|
| RObject acdk::lang::CoreByteBuffer::clone |
( |
|
) |
[inline, virtual] |
|
| virtual RReadByteBuffer acdk::lang::CoreByteBuffer::createReadSlice |
( |
int |
start = 0, |
|
|
int |
end = -1, |
|
|
SliceType |
sliceType = ShadowSlice |
|
) |
[inline, virtual] |
|
| virtual RReadWriteByteBuffer acdk::lang::CoreByteBuffer::createReadWriteSlice |
( |
int |
start = 0, |
|
|
int |
end = -1, |
|
|
SliceType |
sliceType = ShadowSlice |
|
) |
[inline, virtual] |
|
| virtual RWriteByteBuffer acdk::lang::CoreByteBuffer::createWriteSlice |
( |
int |
start = 0, |
|
|
int |
end = -1, |
|
|
SliceType |
sliceType = ShadowSlice |
|
) |
[inline, virtual] |
|
| virtual byte acdk::lang::CoreByteBuffer::deleteAt |
( |
int |
idx |
) |
[inline, virtual] |
|
| virtual byte* acdk::lang::CoreByteBuffer::end |
( |
|
) |
[inline, virtual] |
|
| virtual void acdk::lang::CoreByteBuffer::ensureCapacity |
( |
int |
cap |
) |
[inline, virtual] |
|
| byte acdk::lang::CoreByteBuffer::get |
( |
int |
idx |
) |
[inline, virtual] |
|
| virtual void acdk::lang::CoreByteBuffer::insertAt |
( |
int |
idx, |
|
|
byte |
t |
|
) |
[inline, virtual] |
|
| virtual int acdk::lang::CoreByteBuffer::length |
( |
|
) |
[inline, virtual] |
|
| virtual int acdk::lang::CoreByteBuffer::limit |
( |
|
) |
[inline, virtual] |
|
| virtual byte acdk::lang::CoreByteBuffer::pop |
( |
|
) |
[inline, virtual] |
|
| virtual void acdk::lang::CoreByteBuffer::push |
( |
byte |
t |
) |
[inline, virtual] |
|
| virtual void acdk::lang::CoreByteBuffer::resize |
( |
int |
size, |
|
|
byte |
fill = 0 |
|
) |
[inline, virtual] |
|
| void acdk::lang::CoreByteBuffer::set |
( |
int |
idx, |
|
|
byte |
b |
|
) |
[inline, virtual] |
|
| virtual bool acdk::lang::CoreByteBuffer::supportNativeIterator |
( |
|
) |
[inline, virtual] |
|
Member Data Documentation
|
|