Cocos2D JavaScript (v0.2.0-beta) API Documentation

  • gzip

Namespace: gzip

Module
Global
Defined In
libs/gzip.js
Wrappers around JXG's GZip utils

Public Methods

Method Defined By
Expand unzip unzip (input:Integer[]) : String <static>
Unpack a gzipped byte array

Arguments

  1. input : Integer[]
    Byte array

Returns

gzip
Expand unzipAsArray unzipAsArray (input:Integer[],bytes:Integer) : Integer[] <static>
Unpack a gzipped byte array

Arguments

  1. input : Integer[]
    Byte array
  2. bytes : Integer
    Bytes per array item

Returns

  • Integer[]
    Unpacked byte array
gzip
Expand unzipBase64 unzipBase64 (input:String) : String <static>
Unpack a gzipped byte string encoded as base64

Arguments

  1. input : String
    Byte string encoded as base64

Returns

gzip
Expand unzipBase64AsArray unzipBase64AsArray (input:String,bytes:Integer) : Integer[] <static>
Unpack a gzipped byte string encoded as base64

Arguments

  1. input : String
    Byte string encoded as base64
  2. bytes : Integer
    Bytes per array item

Returns

  • Integer[]
    Unpacked byte array
gzip

Private Members

This namespace has no private members.