Core Function BinaryUncompress

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> BinaryUncompress( <binary-array> ) </pre> === Description === Uncompress a binary variable data === Parameters === ==== binary-array ==== The binary variable to uncomp...")
Newer edit →

Revision as of 11:02, 12 November 2011

BinaryUncompress( <binary-array> )

Contents

Description

Uncompress a binary variable data

Parameters

binary-array

The binary variable to uncompress.

Return Value

Success: Returns 1.

Failure: Returns 0.

Remarks

None

Example

$binary = Pack("z0", ("Hello World!\n" x 1000))
println("Size uncompressed : " . BinaryLen($binary))
BinaryCompress($binary)
println("Size compressed : " . BinaryLen($binary))
BinaryUncompress($binary)
println("Size uncompressed (again) : " . BinaryLen($binary))
inputC("\nPress any key to see whats inside the binary variable after compress and decompress")
println( Unpack("z0", $binary) ) ; Prints "Hello World!" 1000 times
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox