Added some ascii art over the on-disk encodings
I find these little diagrams useful for visualizing the actual on-disk encoding, which doesn't really exist in the code outside of the lfsr_data_from* and lfsr_data_read* functions.
This commit is contained in:
@@ -370,9 +370,15 @@ typedef struct lfsr_opened {
|
||||
lfsr_mdir_t mdir;
|
||||
} lfsr_opened_t;
|
||||
|
||||
// space for:
|
||||
// - type - 1 leb128 - 1 byte (worst case)
|
||||
// - 2 mids - 2 leb128 - 10 bytes (worst case)
|
||||
// grm encoding:
|
||||
// .---.
|
||||
// |mod| mode: 1 byte
|
||||
// +- -+- -+- -+- -+- -.
|
||||
// ' mid x mod ' mids: <=2x5 bytes
|
||||
// + + total: <=11 bytes
|
||||
// ' '
|
||||
// '- -+- -+- -+- -+- -'
|
||||
//
|
||||
#define LFSR_GRM_DSIZE (1+5+5)
|
||||
|
||||
typedef struct lfsr_grm {
|
||||
|
||||
Reference in New Issue
Block a user