Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LZO header
/*
* All fields are big endian byte order.
* Magic: 9 bytes (0x89, 0x4c, 0x5a, 0x4f, 0x00, 0x0d, 0x0a, 0x1a, 0x0a)
* Version: 2 bytes
* Lib version: 2 bytes
* Version needed: 2 bytes
* Method: 1 byte
* Level: 1 byte
* Flags: 4 byte
* Filter: 4 bytes (only if flags & F_H_FILTER)
* Mode: 4 bytes
* Mtime: 4 bytes
* GMTdiff: 4 bytes
* File name length: 1 byte
* Name: 0-255 bytes
* Checksum, original data: 4 bytes (CRC32 if flags & F_H_CRC32 else Adler32)
* Uncompressed size: 4 bytes
* Compressed size: 4 bytes
* Checksum, uncompressed data: 4 bytes
* Checksum, compressed data: 4 bytes (only if flags & F_ADLER32_C or flags & F_CRC32_C)
* Compressed data: 0-xxx bytes
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.