Method |
Description |
|
LV ( string $str, integer $len = 1, boolean $lrev = false ) : string |
Build length-value binary snippet |
|
LVnull ( string $str ) : string |
Build nul-terminated string, with 2-byte of length |
|
b2i ( string $str, boolean $l = false ) : integer |
Convert bytes into integer |
|
bitmap2bytes ( string $bitmap, integer $check_len ) : string | false |
Convert bitmap into bytes |
|
byte ( integer $int ) : string |
Build byte |
|
bytes2int ( string $str, boolean $l = false ) : integer |
Convert bytes into integer |
|
dword ( integer $int ) : string |
Build double word (4 bytes) big-endian |
|
dwordl ( integer $int ) : string |
Build double word (4 bytes) little endian |
|
flags2bitarray ( array $flags, integer $len = 4 ) : string |
Convert array of flags into bit array |
|
getByte ( &$p ) : integer |
Parse byte, and remove it |
|
getChar ( &$p ) : string |
Get single-byte character |
|
getDWord ( &$p, boolean $l = false ) : integer |
Get double word (4 bytes) |
|
getLV ( &$p, integer $l = 1, boolean $nul = false, boolean $lrev = false ) : string |
Parse length-value structure |
|
getQword ( &$p, boolean $l = false ) : integer |
Parse quadro word (8 bytes) |
|
getStrQWord ( &$p, boolean $l = false ) : string |
Get quadro word (8 bytes) |
|
getStrWord ( &$p, boolean $l = false ) : string |
Get word (2 bytes) |
|
getString ( &$str ) : string |
Parse nul-terminated string |
|
getWord ( &$p, boolean $l = false ) : integer |
Parse word (2 bytes) |
|
getbitmap ( integer $byte ) : string |
Get bitmap |
|
i2b ( integer $len, integer $int, boolean $l = false ) : string |
Converts integer to binary string |
|
int2bytes ( integer $len, integer $int, boolean $l = false ) : string |
Converts integer to binary string |
|
labels ( string $q ) : string |
Build structure of labels |
|
parseLabels ( &$data, string $orig = null ) : string |
Parse structure of labels |
|
qword ( integer $int ) : string |
Build quadro word (8 bytes) big endian |
|
qwordl ( integer $int ) : string |
Build quadro word (8 bytes) little endian |
|
word ( integer $int ) : string |
Build word (2 bytes) big-endian |
|
wordl ( integer $int ) : string |
Build word (2 bytes) little-endian |
|