Core Function UnpackSingle
From Sputnik Wiki
UnpackSingle( <format>, <data/binary-array>, <position> )
Contents |
Description
Unpack a single value from a binary array optionally from a given index.
format
See PackSingle( ) for an explanation of the format codes.
data/binary-array
See Unpack( ) for this param is the same in UnpackSingle() as it is Unpack().
position
Optional; The index to begin the unpacking from.
Default: 0
Return Value
Success: The value as specified by the format code ("i" will return an Int32 etc).
Failure: Returns null
Remarks
This is almost the same as Unpack( ) but designed to only do one operation thus avoiding the need for excessive parsing and what not the result is more speed.
Example
Go see PackSingle( ) for examples.