Functions
compress
-
Parameters
-
buffer: string | Uint8Array
-
Returns Uint8Array
decompress
- decompress(buffer: string | Uint8Array, options?: undefined | { mode: bytes }): Uint8Array
- decompress(buffer: string | Uint8Array, options?: undefined | { mode: text }): string
-
Parameters
-
buffer: string | Uint8Array
-
Optional options: undefined | { mode: bytes }
Returns Uint8Array
-
Parameters
-
buffer: string | Uint8Array
-
Optional options: undefined | { mode: text }
Returns string
Returns the
buffer
compressed via LZ77 Compression