Implemented a set of convenience lfsr_data_read* functions

This makes lfsr_data_t a more powerful primitive in littlefs.

- Implemented a set of convenience lfsr_data_read* functions for
  easier reading from muxed on-disk/in-ram data.

- Adoped these functions and lfsr_data_t in *_fromdisk functions
  as well as low-level rbyd operations.

- Changed leb128 parsing to rely on returned limits instead of
  pre-initialized 0xffs to detect truncated leb128s.

- Prefer incremental reading+parsing in more places as a side-effect,
  though we don't really have a measurement if this is a net benefit or
  cost code/ram wise.
This commit is contained in:
Christopher Haster
2023-04-24 19:29:13 -05:00
parent 283b8e84c4
commit 21bd43fa0c
+276 -403
View File
File diff suppressed because it is too large Load Diff