Core Function Unpack

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Return Value)
(Return Value)
Line 31: Line 31:
 
Success: Returns the array of data (Only if its over 1 item, For single items it will return the item such as string, int etc) unless the flag is set to 1 then it will return a string.
 
Success: Returns the array of data (Only if its over 1 item, For single items it will return the item such as string, int etc) unless the flag is set to 1 then it will return a string.
  
Failure: Returns empty array.
+
Failure: Returns null.
  
 
=== Remarks ===
 
=== Remarks ===

Revision as of 15:03, 29 August 2013

Unpack( <expression>, <binary-array/string>, <flag> )

Contents

Description

Unpack data from a binary array

expression

The format string to use.

binary-array/string

An binary array of bytes such as one produced by the Pack function.

OR

A string to be converted into a binary array of bytes (z0 ASCII encoding).

flag

Optional; Control what is returned options are:

0 = Return an array

1 = Return a string

Return Value

Success: Returns the array of data (Only if its over 1 item, For single items it will return the item such as string, int etc) unless the flag is set to 1 then it will return a string.

Failure: Returns null.

Remarks

Go see Pack( <expression>, <expressions> ) for a list of formats and examples.

Example

Go see Pack( <expression>, <expressions> ) for a list of formats and examples.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox