new Decoder(dict, progressive, options)
Constructs a new PSON Decoder.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
dict |
Array.<string> | Initial dictionary values |
|
progressive |
boolean | Whether this is a progressive or a static decoder |
|
options |
Object.<string,*> |
<optional> |
Options |
Members
-
dict :Array.<string>
-
Dictionary array.
-
options :Object.<string,*>
-
Options.
-
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
- ?