Core Function BinaryGet
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> BinaryGet( <binary-array>, <index> ) </pre> === Description === Get the byte at an index of a binary variable. === Parameters === ==== binary-array ==== The binary va...")
Newer edit →
(Created page with "<pre> BinaryGet( <binary-array>, <index> ) </pre> === Description === Get the byte at an index of a binary variable. === Parameters === ==== binary-array ==== The binary va...")
Newer edit →
Revision as of 07:02, 12 November 2011
BinaryGet( <binary-array>, <index> )
Contents |
Description
Get the byte at an index of a binary variable.
Parameters
binary-array
The binary variable to use.
index
Any valid numeric expression.
Return Value
Success: Returns the byte at the given location.
Failure: Returns 0.
Remarks
None.
Example
$binary = BinaryHex("48656c") println( "Binary 0: '" . BinaryGet($binary, 0) ) println( "Binary 1: '" . BinaryGet($binary, 1) ) println( "Binary 2: '" . BinaryGet($binary, 2) )