Home Manual Reference Source

Function

Static Public Summary
public

* decode(objectPattern: {"table": *}, tokens: *)

public

dict(symbols: string[]): {"trie": *, "table": *}

public

* encode(objectPattern: {"trie": *, "table": *}, symbols: *)

Simple Lempel-Ziv lossless data compression algorithm implementation.

Static Public

public * decode(objectPattern: {"table": *}, tokens: *) source

Params:

NameTypeAttributeDescription
objectPattern {"table": *}
  • default: {"table":null}
tokens *

public dict(symbols: string[]): {"trie": *, "table": *} source

Params:

NameTypeAttributeDescription
symbols string[]
  • optional
  • default: [""]

Return:

{"trie": *, "table": *}

public * encode(objectPattern: {"trie": *, "table": *}, symbols: *) source

Simple Lempel-Ziv lossless data compression algorithm implementation.

Params:

NameTypeAttributeDescription
objectPattern {"trie": *, "table": *}
  • default: {"trie":null,"table":null}
symbols *