fix comment in compression
This commit is contained in:
+3
-4
@@ -1154,12 +1154,11 @@ string bc0_decompress(const void* data, size_t size) {
|
|||||||
// so the first output byte corresponds to position 0xFEE on the first memo
|
// so the first output byte corresponds to position 0xFEE on the first memo
|
||||||
// page. Backreferences refer to offsets based on the start of memo pages; for
|
// page. Backreferences refer to offsets based on the start of memo pages; for
|
||||||
// example, if the current output offset is 0x1234, a backreference with
|
// example, if the current output offset is 0x1234, a backreference with
|
||||||
// offset 0x123 refers to the byte that was written at offset 0x1112 (because
|
// offset 0x123 refers to the byte that was written at offset 0x1111 (because
|
||||||
// that byte is at offset 0x112 in the memo, because the memo rolls over every
|
// that byte is at offset 0x111 in the memo, because the memo rolls over every
|
||||||
// 0x1000 bytes and the first memo byte was 0x12 bytes before the beginning of
|
// 0x1000 bytes and the first memo byte was 0x12 bytes before the beginning of
|
||||||
// the next page). The memo is initially zeroed from 0 to 0xFEE; it seems PSO
|
// the next page). The memo is initially zeroed from 0 to 0xFEE; it seems PSO
|
||||||
// GC doesn't initialize the last 0x12 bytes of the first memo page. For this
|
// GC doesn't initialize the last 0x12 bytes of the first memo page.
|
||||||
// reason, we avoid generating backreferences that refer to those bytes.
|
|
||||||
parray<uint8_t, 0x1000> memo;
|
parray<uint8_t, 0x1000> memo;
|
||||||
uint16_t memo_offset = 0x0FEE;
|
uint16_t memo_offset = 0x0FEE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user