Skip to content

platform/import/mozlz4

decodeMozLz4(data): string

Defined in: app/src/platform/import/mozlz4.ts:10

Decodes a file in Firefox’s mozLz4 format, such as sessionstore.jsonlz4: a magic number, the size of the content as a 32-bit little-endian number, and one LZ4 block.

Uint8Array

The file’s bytes.

string

The content as UTF-8 text.

When the data is not mozLz4 or the block is damaged.