Function
Static Public Summary | ||
public |
* decode(objectPattern: {"table": *}, tokens: *) |
|
public |
|
|
public |
* encode(objectPattern: {"trie": *, "table": *}, symbols: *) Simple Lempel-Ziv lossless data compression algorithm implementation. |
Static Public
public * decode(objectPattern: {"table": *}, tokens: *) source
import {decode} from '@compression-algorithm/lempel-ziv/src/lz78.js'
Params:
Name | Type | Attribute | Description |
objectPattern | {"table": *} |
|
|
tokens | * |
public dict(symbols: string[]): {"trie": *, "table": *} source
import {dict} from '@compression-algorithm/lempel-ziv/src/lz78.js'
Params:
Name | Type | Attribute | Description |
symbols | string[] |
|
Return:
{"trie": *, "table": *} |
public * encode(objectPattern: {"trie": *, "table": *}, symbols: *) source
import {encode} from '@compression-algorithm/lempel-ziv/src/lz78.js'
Simple Lempel-Ziv lossless data compression algorithm implementation.
Params:
Name | Type | Attribute | Description |
objectPattern | {"trie": *, "table": *} |
|
|
symbols | * |