platform/import/mozlz4
Functions
Section titled “Functions”decodeMozLz4()
Section titled “decodeMozLz4()”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.
Parameters
Section titled “Parameters”Uint8Array
The file’s bytes.
Returns
Section titled “Returns”string
The content as UTF-8 text.
Throws
Section titled “Throws”When the data is not mozLz4 or the block is damaged.