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

The ByteView class. More...

Public Member Functions

long getLength ()
 Get length of byte view. More...
 
byte readByte (long position)
 Read byte from byte view (position in bytes) More...
 
int readSignedInt (long position, int length, ENDIAN_TYPE endianType)
 Read signed integer from byte view. More...
 
uint readUnsignedInt (long position, int length, ENDIAN_TYPE endianType)
 Read unsigned integer from byte view. More...
 
String readString (long position, int length, String encoding)
 Read string from byte view. More...
 

Detailed Description

The ByteView class.

A byte view object is a proxy to a ByteArray object.

Author
Andreas Pehnack
Date
2009-12-12

Member Function Documentation

long getLength ( )

Get length of byte view.

Author
Andreas Pehnack
Date
2011-09-01
Returns
Length of byte view
byte readByte ( long  position)

Read byte from byte view (position in bytes)

Author
Andreas Pehnack
Date
2009-12-12
Parameters
[in]positionPosition where to read the byte
Returns
Byte at position
See also
readSignedInt()
readUnsignedInt()
int readSignedInt ( long  position,
int  length,
ENDIAN_TYPE  endianType 
)

Read signed integer from byte view.

Author
Andreas Pehnack
Date
2009-12-12
Parameters
[in]positionPosition where to read the number
[in]lengthLength of the number in bytes
[in]endianTypeLittle/big endian
Returns
Signed int at position
See also
readByte()
readUnsignedInt()
String readString ( long  position,
int  length,
String  encoding 
)

Read string from byte view.

Author
Andreas Pehnack
Date
2009-12-12
Parameters
[in]positionPosition where to read the string
[in]lengthLength of the string in bytes
[in]encodingEncoding of the string
Returns
String at position
See also
readByte()
readSignedInt()
readUnsignedInt()
uint readUnsignedInt ( long  position,
int  length,
ENDIAN_TYPE  endianType 
)

Read unsigned integer from byte view.

Author
Andreas Pehnack
Date
2009-12-12
Parameters
[in]positionPosition where to read the number
[in]lengthLength of the number in bytes
[in]endianTypeLittle/big endian
Returns
Unsigned int at position
See also
readByte()
readSignedInt()

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