artefaktur
software engineer &        architecture

 
 
 
 

class SlicedReadByteBuffer

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

acdk::lang::SlicedReadByteBuffer Class Reference

#include <ByteBuffer.h>

Inheritance diagram for acdk::lang::SlicedReadByteBuffer:

acdk::lang::Object acdk::lang::ReadByteBuffer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

holds a slice from another ReadByteBuffer


Public Member Functions

 SlicedReadByteBuffer (IN(RReadByteBuffer) buf, int start=0, int end=-1)
 creates a slice from given ReadByteBuffer with given (absolut) start and end offsets

virtual RObject clone ()
virtual int length ()
virtual 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

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 Attributes

RReadByteBuffer _parent
 original byte buffer

int _start
int _end

Constructor & Destructor Documentation

acdk::lang::SlicedReadByteBuffer::SlicedReadByteBuffer IN(RReadByteBuffer buf,
int  start = 0,
int  end = -1
[inline]
 

creates a slice from given ReadByteBuffer with given (absolut) start and end offsets


Member Function Documentation

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

for performance reasons the ByteBuffer implementation should support this method

Reimplemented from acdk::lang::ByteBuffer.

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

See also:
serialized_clone

Reimplemented from acdk::lang::Object.

virtual RReadByteBuffer acdk::lang::SlicedReadByteBuffer::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::SlicedReadByteBuffer::end  )  [inline, virtual]
 

for performance reasons the ByteBuffer implementation should support this method

Reimplemented from acdk::lang::ByteBuffer.

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

returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException

Implements acdk::lang::ReadByteBuffer.

virtual int acdk::lang::SlicedReadByteBuffer::length  )  [inline, virtual]
 

Implements acdk::lang::ByteBuffer.

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

begin() and end() are supported

Reimplemented from acdk::lang::ByteBuffer.


Member Data Documentation

int acdk::lang::SlicedReadByteBuffer::_end [protected]
 

RReadByteBuffer acdk::lang::SlicedReadByteBuffer::_parent [protected]
 

original byte buffer

int acdk::lang::SlicedReadByteBuffer::_start [protected]
 

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer