Added type info to dsize comments

This is mostly just a lot of leb128s, though we do use be16 for tags and
le32 for cksums and revision counts.

There are several places we use single-byte leb128s, which really are
u8s with the top bit reserved. Still, notating this as leb128 indicates
that the top bit really is reserved, even if you don't need full leb128
encoding/decoding in practice.
This commit is contained in:
Christopher Haster
2024-03-19 15:03:03 -05:00
parent 2564100eaa
commit c71725d627
2 changed files with 65 additions and 65 deletions
+5 -5
View File
@@ -371,11 +371,11 @@ typedef struct lfsr_opened {
} lfsr_opened_t;
// grm encoding:
// .---.
// |mod| mode: 1 byte
// +- -+- -+- -+- -+- -.
// ' mid x mod ' mids: <=2x5 bytes
// + + total: <=11 bytes
// .---. mode: 1 leb128 1 byte
// |mod| mids: 2 leb128s <=2x5 bytes
// +- -+- -+- -+- -+- -. total: <=11 bytes
// ' mid x mod '
// + +
// ' '
// '- -+- -+- -+- -+- -'
//