2005/5/9

     
 

class ArrayReadByteBuffer

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

acdk::lang::ArrayReadByteBuffer Class Reference

#include <ByteBuffer.h>

Inheritance diagram for acdk::lang::ArrayReadByteBuffer:

acdk::lang::Object acdk::lang::ReadByteBuffer acdk::lang::SimplePtrItBuffer< byte > acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::lang::ArrayReadWriteByteBuffer List of all members.

Detailed Description

wrapps a a byteArray as ByteBuffer


Public Member Functions

 ArrayReadByteBuffer (IN(RbyteArray) ba, int start=0, int end=-1)
 creates a ReadByteBuffer from a byteArray with given absolut start and end offsets

RObject clone ()
int length ()
byte get (int idx)
 returns the byte from 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

int startOffset ()
int endOffset ()
virtual bytebegin ()
 for performance reasons the ByteBuffer implementation should support this method

virtual byteend ()
 for performance reasons the ByteBuffer implementation should support this method

virtual bool supportNativeIterator ()
 begin() and end() are supported


Protected Types

typedef SimplePtrItBuffer<
byte
PtrBufferType

Protected Attributes

RbyteArray _ba


Member Typedef Documentation

typedef SimplePtrItBuffer<byte> acdk::lang::ArrayReadByteBuffer::PtrBufferType [protected]
 


Constructor & Destructor Documentation

acdk::lang::ArrayReadByteBuffer::ArrayReadByteBuffer IN(RbyteArray ba,
int  start = 0,
int  end = -1
[inline]
 

creates a ReadByteBuffer from a byteArray with given absolut start and end offsets


Member Function Documentation

virtual byte* acdk::lang::ArrayReadByteBuffer::begin  )  [inline, virtual]
 

for performance reasons the ByteBuffer implementation should support this method

Reimplemented from acdk::lang::ByteBuffer.

RObject acdk::lang::ArrayReadByteBuffer::clone  )  [inline, virtual]
 

See also:
serialized_clone

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::lang::ArrayReadWriteByteBuffer.

virtual RReadByteBuffer acdk::lang::ArrayReadByteBuffer::createReadSlice int  start = 0,
int  end = -1,
SliceType  sliceType = ShadowSlice
[virtual]
 

creates a slice of this ByteBuffer

Implements acdk::lang::ReadByteBuffer.

virtual byte* acdk::lang::ArrayReadByteBuffer::end  )  [inline, virtual]
 

for performance reasons the ByteBuffer implementation should support this method

Reimplemented from acdk::lang::ByteBuffer.

int acdk::lang::ArrayReadByteBuffer::endOffset  )  [inline]
 

byte acdk::lang::ArrayReadByteBuffer::get int  idx  )  [inline, virtual]
 

returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException

Implements acdk::lang::ReadByteBuffer.

int acdk::lang::ArrayReadByteBuffer::length  )  [inline]
 

Reimplemented from acdk::lang::SimplePtrItBuffer< byte >.

int acdk::lang::ArrayReadByteBuffer::startOffset  )  [inline]
 

virtual bool acdk::lang::ArrayReadByteBuffer::supportNativeIterator  )  [inline, virtual]
 

begin() and end() are supported

Reimplemented from acdk::lang::ByteBuffer.


Member Data Documentation

RbyteArray acdk::lang::ArrayReadByteBuffer::_ba [protected]