Synalyze It!  1.1
 All Classes Functions Pages
Public Member Functions | List of all members
ByteArray Class Reference

The ByteArray class. More...

Public Member Functions

long getLength ()
 get length More...
 
 deleteRange (long position, long length)
 Delete range in byte array. More...
 
 fillRange (long position, long length, byte[] fillBytes)
 Fill range in byte array. More...
 
 writeSignedInt (long position, long length, ENDIAN_TYPE endianType)
 Write signed integer to byte array. More...
 
 writeSignedIntBits (long position, long length, ENDIAN_TYPE endianType)
 Write signed integer to byte array (on bit level) More...
 
 writeUnsignedInt (long position, long length, ENDIAN_TYPE endianType)
 Write unsigned integer to byte array. More...
 
 writeUnsignedIntBits (long position, long length, ENDIAN_TYPE endianType)
 Write unsigned integer to byte array (on bit level) More...
 
 insertByte (long position, char byte)
 Insert byte into byte array. More...
 
 replaceByte (long position, char byte)
 Replace byte in byte array. More...
 

Detailed Description

The ByteArray class.

A byte array object represents mostly a larger memory chunk. The actual storage is handled by ByteStorage objects.

Author
Andreas Pehnack
Date
2009-12-10

Member Function Documentation

deleteRange ( long  position,
long  length 
)

Delete range in byte array.

Author
Andreas Pehnack
Date
2010-09-03
Parameters
[in]positionPosition where to delete
[in]lengthNumber of bytes to delete
See Also
insertByte()
fillRange ( long  position,
long  length,
byte[]  fillBytes 
)

Fill range in byte array.

Author
Andreas Pehnack
Date
2010-09-03
Parameters
[in]positionPosition where to delete
[in]lengthNumber of bytes to delete
[in]fillBytesAn array of bytes to fill in range
See Also
insertByte()
long getLength ( )

get length

Author
Andreas Pehnack
Date
2009-12-12
Returns
The length of the byte array
insertByte ( long  position,
char  byte 
)

Insert byte into byte array.

Author
Andreas Pehnack
Date
2010-09-03
Parameters
[in]positionPosition where to insert
[in]byteThe byte to insert
See Also
deleteRange()
replaceByte ( long  position,
char  byte 
)

Replace byte in byte array.

Author
Andreas Pehnack
Date
2010-09-03
Parameters
[in]positionPosition where to replace
[in]byteThe byte to replace
See Also
deleteRange()
insertByte()
writeSignedInt ( long  position,
long  length,
ENDIAN_TYPE  endianType 
)

Write signed integer to byte array.

Author
Andreas Pehnack
Date
2012-06-10
Parameters
[in]positionPosition where to write (bytes)
[in]lengthNumber of bytes to write
[in]endianTypeEndianness of number to write
See Also
insertByte()
writeSignedIntBits ( long  position,
long  length,
ENDIAN_TYPE  endianType 
)

Write signed integer to byte array (on bit level)

Author
Andreas Pehnack
Date
2012-06-10
Parameters
[in]positionPosition where to write (bits)
[in]lengthNumber of bits to write
[in]endianTypeEndianness of number to write
See Also
insertByte()
writeUnsignedInt ( long  position,
long  length,
ENDIAN_TYPE  endianType 
)

Write unsigned integer to byte array.

Author
Andreas Pehnack
Date
2012-06-10
Parameters
[in]positionPosition where to write
[in]lengthNumber of bytes to write
[in]endianTypeEndianness of number to write
See Also
insertByte()
writeUnsignedIntBits ( long  position,
long  length,
ENDIAN_TYPE  endianType 
)

Write unsigned integer to byte array (on bit level)

Author
Andreas Pehnack
Date
2012-06-10
Parameters
[in]positionPosition where to write (bits)
[in]lengthNumber of bits to write
[in]endianTypeEndianness of number to write
See Also
insertByte()

The documentation for this class was generated from the following file: