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:
@@ -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 '
|
||||
// + +
|
||||
// ' '
|
||||
// '- -+- -+- -+- -+- -'
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user