Core Function BinaryCreate

From Sputnik Wiki
Revision as of 09:15, 13 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
BinaryCreate( <size>, <fill> )

Contents

Description

Create a new binary variable and its array size and fill data type.

Parameters

size

The size (in bytes) of the new binary variable.

fill

Optional; The byte to fill the data with.

Default is 0

Return Value

Success: Returns the new binary variable.

Failure: Returns 0.

Remarks

N/A

Example

$binary = BinaryCreate(1000) ; Create it
; Print its data
$k = 0
For $i In $binary
	println( DecPad($k, 5) . " Byte: " . $i )
	$k++
Next
; Finally print its size
println("The size of the new binary variable is: " . BinaryLen($binary) )
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox