2005/5/9

     
 

class SlicedReadWriteByteBuffer

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

acdk::lang::SlicedReadWriteByteBuffer Class Reference

#include <ByteBuffer.h>

Inheritance diagram for acdk::lang::SlicedReadWriteByteBuffer:

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

Detailed Description

holds a slice from another ReadWriteByteBuffer


Public Member Functions

 SlicedReadWriteByteBuffer (IN(RReadWriteByteBuffer) buf, int start, int end, SliceType sliceType)
virtual RObject clone ()
virtual int length ()
virtual byte get (int idx)
 returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException

virtual void set (int idx, byte t)
 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


Protected Attributes

RReadWriteByteBuffer _parent
int _start
int _end
SliceType _sliceType


Constructor & Destructor Documentation

acdk::lang::SlicedReadWriteByteBuffer::SlicedReadWriteByteBuffer IN(RReadWriteByteBuffer buf,
int  start,
int  end,
SliceType  sliceType
[inline]
 


Member Function Documentation

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

See also:
serialized_clone

Reimplemented from acdk::lang::Object.

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

creates a slice of this ByteBuffer

Implements acdk::lang::ReadByteBuffer.

virtual RReadWriteByteBuffer acdk::lang::SlicedReadWriteByteBuffer::createReadWriteSlice int  start = 0,
int  end = -1,
SliceType  sliceType = ShadowSlice
[virtual]
 

creates a slice of this ByteBuffer

Implements acdk::lang::ReadWriteByteBuffer.

virtual RWriteByteBuffer acdk::lang::SlicedReadWriteByteBuffer::createWriteSlice int  start = 0,
int  end = -1,
SliceType  sliceType = ShadowSlice
[virtual]
 

creates a slice of this ByteBuffer

Implements acdk::lang::WriteByteBuffer.

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

returns the byte from given position May throw RuntimeException or ArrayIndexOutOfBoundsException

Implements acdk::lang::ReadByteBuffer.

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

Implements acdk::lang::ByteBuffer.

virtual void acdk::lang::SlicedReadWriteByteBuffer::set int  idx,
byte  t
[inline, virtual]
 

set the byte at given position May throw RuntimeException or ArrayIndexOutOfBoundsException

Implements acdk::lang::WriteByteBuffer.


Member Data Documentation

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

RReadWriteByteBuffer acdk::lang::SlicedReadWriteByteBuffer::_parent [protected]
 

SliceType acdk::lang::SlicedReadWriteByteBuffer::_sliceType [protected]
 

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