메소드 |
설명 |
|
dec2hex ( integer $int, integer $padLength = 2 ) : string |
Need to make sure hex values are always an even length, so pad as needed. |
|
decode ( string $tsProperty ) |
Given a TSProperty blob, decode the name/value/type/etc. |
|
decodePropValue ( string $hex, boolean $string = false ) : string |
Decode the property by inspecting the nibbles of each blob, checking the control, and adding up the results into
a final value. |
|
encodePropValue ( string $value, boolean $string = false ) : string |
Get the encoded property value as a binary blob. |
|
getDecodedValueForProp ( string $propName, string $propValue ) : string | integer |
Based on the property name in question, get its actual value from the binary blob value. |
|
getEncodedValueForProp ( string $propName, string | integer $propValue ) : string |
Based on the property name/value in question, get its encoded form. |
|
getNibbleWithControl ( string $nibbleType, $nibble ) : string |
Get the nibble value with the control prefixed. |
|
nibbleControl ( string $nibble, string $control ) : string |
Based on the control, adjust the nibble accordingly. |
|
packBitString ( string $bits, boolean $len ) : string |
PHP's pack() function has no 'b' or 'B' template. This is a workaround that turns a literal bit-string into a
packed byte-string with 8 bits per byte. |
|