Changes
Page history
compression erstellen
authored
Aug 22, 2019
by
Nico Bendlin
Show whitespace changes
Inline
Side-by-side
compression.md
0 → 100644
View page @
b3f6867b
Transparent stream compression is always optional. Compressed data is recognized by the four-byte magic value
`1 76 79 66`
.
```
c
struct
am2lob
{
uint8_t
magic
[
4
];
// {0x01, 0x4C, 0x4F, 0x42} ("\1LOB")
uint8_t
method
;
// has to be 6 for Ambermoon
uint8_t
rawSize
[
3
];
// big-endian size of uncompressed data
uint8_t
cmpSize
[
4
];
// big-endian size of compressed data
uint8_t
cmpData
[
cmpSize
];
};
```
TODO: document decompression algorithm and in-place decompression issues.
Trivia: LOB =
[
Lothar Becks
](
https://www.mobygames.com/developer/sheet/view/developerId,177857/
)
\ No newline at end of file