Public Member Functions

zeus::TByteArray Class Reference

#include <ByteArray.hpp>

Inheritance diagram for zeus::TByteArray:
zeus::TArrayList< char > zeus::IArray< char > zeus::IList< char > zeus::IValueType

List of all members.

Public Member Functions

 TByteArray (Int iSize=20)
 TByteArray (const char *pArray, Int iSize, bool bAttachPointer=false)
 TByteArray (const char &rEmptyItem, Int iSize)
 TByteArray (const IByteArray *pList)
 TByteArray (const IByteArray &rList)
 TByteArray (const TByteArray &rList)
virtual ~TByteArray ()
TByteArrayoperator= (const IByteArray &rList)
TByteArrayoperator= (const TByteArray &rList)
Int addRawInt8 (Int8 cValue)
Int addRawInt16 (Int16 sValue)
Int addRawInt32 (Int32 lValue)
Int addRawInt64 (Int64 ldValue)
Int addRawUint8 (Uint8 ucValue)
Int addRawUint16 (Uint16 usValue)
Int addRawUint32 (Uint32 ulValue)
Int addRawUint64 (Uint64 uldValue)
Int addRawFloat32 (Float32 fValue)
Int addRawFloat64 (Float64 dValue)
Int addRawString8 (const char *acData)
Int8 getRawInt8 (Int iFromIndex) const
Int16 getRawInt16 (Int iFromIndex) const
Int32 getRawInt32 (Int iFromIndex)
Int64 getRawInt64 (Int iFromIndex)
Uint8 getRawUint8 (Int iFromIndex) const
Uint16 getRawUint16 (Int iFromIndex) const
Uint32 getRawUint32 (Int iFromIndex)
Uint64 getRawUint64 (Int iFromIndex)
Float32 getRawFloat32 (Int iFromIndex)
Float64 getRawFloat64 (Int iFromIndex)
char * getRawString8 (Int iFromIndex, Int &riEndIndex)
void setRawInt8 (Int iFromIndex, Int8 cValue)
void setRawInt16 (Int iFromIndex, Int16 sValue)
void setRawInt32 (Int iFromIndex, Int32 lValue)
void setRawInt64 (Int iFromIndex, Int64 ldValue)
void setRawFloat32 (Int iFromIndex, Float32 fValue)
void setRawFloat64 (Int iFromIndex, Float64 dValue)

Detailed Description

This class extends the array list for byte arrays. The byte array is copied with the shallow mode


Constructor & Destructor Documentation

zeus::TByteArray::TByteArray ( Int  iSize = 20 ) [inline]

Constructor of byte array.

See also:
TArrayList::TArrayList
zeus::TByteArray::TByteArray ( const char *  pArray,
Int  iSize,
bool  bAttachPointer = false 
) [inline]

Constructor of byte array.

See also:
TArrayList::TArrayList
zeus::TByteArray::TByteArray ( const char &  rEmptyItem,
Int  iSize 
) [inline]

Constructor of byte array.

See also:
TArrayList::TArrayList
zeus::TByteArray::TByteArray ( const IByteArray pList ) [inline]

Constructor of byte array.

Parameters:
pList: Array to copy
zeus::TByteArray::TByteArray ( const IByteArray rList ) [inline]

Constructor of byte array.

Parameters:
rList: Array to copy
zeus::TByteArray::TByteArray ( const TByteArray rList ) [inline]

Constructor of byte array.

Parameters:
rList: Array to copy
virtual zeus::TByteArray::~TByteArray (  ) [inline, virtual]

Destroys a byte array.

See also:
TArrayList::~TArrayList

Member Function Documentation

Int zeus::TByteArray::addRawFloat32 ( Float32  fValue ) [inline]

Adds a Float32 value to the array

Parameters:
fValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawFloat64 ( Float64  dValue ) [inline]

Adds a Float64 value to the array

Parameters:
dValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawInt16 ( Int16  sValue ) [inline]

Adds an Int16 value to the array

Parameters:
sValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawInt32 ( Int32  lValue ) [inline]

Adds an Int32 value to the array

Parameters:
lValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawInt64 ( Int64  ldValue ) [inline]

Adds an Int64 value to the array

Parameters:
ldValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawInt8 ( Int8  cValue ) [inline]

Adds an Int8 value to the array

Parameters:
cValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawString8 ( const char *  acData ) [inline]

adds a 8bit null terminated string to the byte array

Int zeus::TByteArray::addRawUint16 ( Uint16  usValue ) [inline]

Adds an Uint16 value to the array

Parameters:
usValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawUint32 ( Uint32  ulValue ) [inline]

Adds an Uint32 value to the array

Parameters:
ulValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawUint64 ( Uint64  uldValue ) [inline]

Adds an Uint64 value to the array

Parameters:
uldValue: Value to add
Returns:
start index of the added value
Int zeus::TByteArray::addRawUint8 ( Uint8  ucValue ) [inline]

Adds an Uint8 value to the array

Parameters:
ucValue: Value to add
Returns:
start index of the added value
Float32 zeus::TByteArray::getRawFloat32 ( Int  iFromIndex ) [inline]

Reads a Float32 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Float64 zeus::TByteArray::getRawFloat64 ( Int  iFromIndex ) [inline]

Reads a Float64 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Int16 zeus::TByteArray::getRawInt16 ( Int  iFromIndex ) const [inline]

Reads an Int16 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Int32 zeus::TByteArray::getRawInt32 ( Int  iFromIndex ) [inline]

Reads an Int32 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Int64 zeus::TByteArray::getRawInt64 ( Int  iFromIndex ) [inline]

Reads an Int64 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Int8 zeus::TByteArray::getRawInt8 ( Int  iFromIndex ) const [inline]

Reads an Int8 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
char* zeus::TByteArray::getRawString8 ( Int  iFromIndex,
Int &  riEndIndex 
) [inline]

Reads a 8bit string value out of an array.

Parameters:
iFromIndex: Index of the memory array where the value starts
riEndIndex: End index of the string (pointing to the NULL sign)
Returns:
value
Uint16 zeus::TByteArray::getRawUint16 ( Int  iFromIndex ) const [inline]

Reads an Uint16 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Uint32 zeus::TByteArray::getRawUint32 ( Int  iFromIndex ) [inline]

Reads an Uint32 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Uint64 zeus::TByteArray::getRawUint64 ( Int  iFromIndex ) [inline]

Reads an Uint64 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
Uint8 zeus::TByteArray::getRawUint8 ( Int  iFromIndex ) const [inline]

Reads an Uint8 value out of an array. The value is at it is in memory.

Parameters:
iFromIndex: Index of the memory array where the value starts
Returns:
value
TByteArray& zeus::TByteArray::operator= ( const TByteArray rList ) [inline]

copy operator of byte array.

Parameters:
rList: Array to copy
TByteArray& zeus::TByteArray::operator= ( const IByteArray rList ) [inline]

copy operator of byte array.

Parameters:
rList: Array to copy
void zeus::TByteArray::setRawFloat32 ( Int  iFromIndex,
Float32  fValue 
) [inline]

Writes a Float32 value into the array as it is.

Parameters:
iFromIndex: Index of the memory array where the value starts
fValue: value to write into the memory
void zeus::TByteArray::setRawFloat64 ( Int  iFromIndex,
Float64  dValue 
) [inline]

Writes a Float64 value into the array as it is.

Parameters:
iFromIndex: Index of the memory array where the value starts
dValue: value to write into the memory
void zeus::TByteArray::setRawInt16 ( Int  iFromIndex,
Int16  sValue 
) [inline]

Writes a Int16 value into the array as it is.

Parameters:
iFromIndex: Index of the memory array where the value starts
sValue: value to write into the memory
void zeus::TByteArray::setRawInt32 ( Int  iFromIndex,
Int32  lValue 
) [inline]

Writes a Int32 value into the array as it is.

Parameters:
iFromIndex: Index of the memory array where the value starts
lValue: value to write into the memory
void zeus::TByteArray::setRawInt64 ( Int  iFromIndex,
Int64  ldValue 
) [inline]

Writes a Int64 value into the array as it is.

Parameters:
iFromIndex: Index of the memory array where the value starts
ldValue: value to write into the memory
void zeus::TByteArray::setRawInt8 ( Int  iFromIndex,
Int8  cValue 
) [inline]

Writes a Int8 value into the array as it is.

Parameters:
iFromIndex: Index of the memory array where the value starts
cValue: value to write into the memory

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:33