Cheetah
Public Member Functions | List of all members
Bytearray Class Reference

Public Member Functions

 setPosition ($position)
 
 getPosition ()
 
 getLastPosition ()
 
 writeBytes ($bytes, $offset=false, $inject=false)
 
 readBytes ($offset, $length)
 
 readAllBytes ()
 
 readUnsignedInt ($offset)
 
 readUTFBytes ($offset, $length=4)
 
 readDouble ($offset, $length=8)
 
 bytesAvailable ()
 

Detailed Description

Definition at line 65 of file Bytearray.class.php.

Member Function Documentation

◆ bytesAvailable()

Bytearray::bytesAvailable ( )

Definition at line 292 of file Bytearray.class.php.

◆ getLastPosition()

Bytearray::getLastPosition ( )

returns the last position of pointer

returns the last position - the position of pointer before last write operation

Parameters
void
Returns
integer last position of the pointer
@access public
Author
Benjamin Carl benja.nosp@m.min..nosp@m.carl@.nosp@m.qual.nosp@m.ifier.nosp@m..de
Since
Method available since Release 1.0.0
Version
1.0

Definition at line 166 of file Bytearray.class.php.

◆ getPosition()

Bytearray::getPosition ( )

returns the current position of pointer

returns the current position of Bytearray pointer

Parameters
void
Returns
integer current position of the pointer
@access public
Author
Benjamin Carl benja.nosp@m.min..nosp@m.carl@.nosp@m.qual.nosp@m.ifier.nosp@m..de
Since
Method available since Release 1.0.0
Version
1.0

Definition at line 146 of file Bytearray.class.php.

◆ readAllBytes()

Bytearray::readAllBytes ( )

read all bytes from Bytearray

read all bytes from Bytearray

Parameters
void
Returns
void @access public
Author
Benjamin Carl benja.nosp@m.min..nosp@m.carl@.nosp@m.qual.nosp@m.ifier.nosp@m..de
Since
Method available since Release 1.0.0
Version
1.0

Definition at line 262 of file Bytearray.class.php.

◆ readBytes()

Bytearray::readBytes (   $offset,
  $length 
)

read bytes from Bytearray

read bytes from Bytearray with given offset and length

Parameters
void
Returns
void @access public
Author
Benjamin Carl benja.nosp@m.min..nosp@m.carl@.nosp@m.qual.nosp@m.ifier.nosp@m..de
Since
Method available since Release 1.0.0
Version
1.0

Definition at line 243 of file Bytearray.class.php.

◆ readDouble()

Bytearray::readDouble (   $offset,
  $length = 8 
)

Definition at line 284 of file Bytearray.class.php.

◆ readUnsignedInt()

Bytearray::readUnsignedInt (   $offset)

Definition at line 268 of file Bytearray.class.php.

◆ readUTFBytes()

Bytearray::readUTFBytes (   $offset,
  $length = 4 
)

Definition at line 277 of file Bytearray.class.php.

◆ setPosition()

Bytearray::setPosition (   $position)

sets the current position of pointer

sets the position of Bytearray pointer after writing bytes to Bytearray

Parameters
integer$positioncurrent position of the pointer
Returns
void @access public
Author
Benjamin Carl benja.nosp@m.min..nosp@m.carl@.nosp@m.qual.nosp@m.ifier.nosp@m..de
Since
Method available since Release 1.0.0
Version
1.0

Definition at line 126 of file Bytearray.class.php.

◆ writeBytes()

Bytearray::writeBytes (   $bytes,
  $offset = false,
  $inject = false 
)

writes bytes to the Bytearray

writes bytes to the Bytearray

Parameters
void
Returns
void @access public
Author
Benjamin Carl benja.nosp@m.min..nosp@m.carl@.nosp@m.qual.nosp@m.ifier.nosp@m..de
Since
Method available since Release 1.0.0
Version
1.0

Definition at line 185 of file Bytearray.class.php.


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