Core Function UnpackSingle

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> UnpackSingle( <format>, <data/binary-array>, <position> ) </pre> === Description === Unpack a single value from a binary array optionally from a given index. ==== for...")
 
m (1 revision)
 

Latest revision as of 12:37, 14 June 2015

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox