Class: Decoder

PSON. Decoder

A PSON Decoder.

new Decoder(dict)

Constructs a new PSON Decoder.

Parameters:
Name Type Description
dict Array.<string>

Initial dictionary values

Members

dict :Array.<string>

Dictionary array.

progressive :boolean

Whether this is a progressive or a static decoder.

Methods

decode(buf) → {?}

Decodes PSON to JSON.

Parameters:
Name Type Description
buf ByteBuffer | ArrayBuffer | Buffer

PSON

Returns:

JSON

Type
?