#include <ByteBuffer.h>
Inheritance diagram for acdk::lang::CoreByteBuffer:
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 |
|
|
|
create a buffer on given size element values are undefined
|
|
create a byte buffer on given size and with initial capicity the elements are initialized with fillWith byte
|
|
|
|
|
|
append the given byte
Implements acdk::lang::FlexByteBuffer. |
|
for performance reasons the ByteBuffer implementation should support this method
Reimplemented from acdk::lang::ByteBuffer. |
|
Reimplemented from acdk::lang::Object. |
|
creates a slice of this ByteBuffer
Implements acdk::lang::ReadByteBuffer. |
|
creates a slice of this ByteBuffer
Implements acdk::lang::ReadWriteByteBuffer. |
|
creates a slice of this ByteBuffer
Implements acdk::lang::WriteByteBuffer. |
|
delete byte at given position and return it
Implements acdk::lang::FlexByteBuffer. |
|
for performance reasons the ByteBuffer implementation should support this method
Reimplemented from acdk::lang::ByteBuffer. |
|
for performance: ensure capacity
Implements acdk::lang::FlexByteBuffer. |
|
returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException
Implements acdk::lang::ReadByteBuffer. |
|
insert a given byte into given position
Implements acdk::lang::FlexByteBuffer. |
|
Implements acdk::lang::ByteBuffer. |
|
return -1 if this buffer has no write limit
Implements acdk::lang::FlexByteBuffer. |
|
removes the last byte and return it
Reimplemented from acdk::lang::FlexByteBuffer. |
|
alias for the append(byte t) method
Reimplemented from acdk::lang::FlexByteBuffer. |
|
set size of buffer if new size > as current size use fill byte to fill new elements
Implements acdk::lang::FlexByteBuffer. |
|
set the byte at given position May throw RuntimeException or ArrayIndexOutOfBoundsException
Implements acdk::lang::WriteByteBuffer. |
|
begin() and end() are supported
Reimplemented from acdk::lang::ByteBuffer. |
|
|