Function forest_filecoin::db::car::plain::read_varint_body_length_or_eof
source · fn read_varint_body_length_or_eof(reader: impl Read) -> Result<Option<u32>>
Expand description
Reads body length
, leaving the reader at the start of a varint frame,
or returns [Ok(None)
] if we’ve reached EOF
start ►│
├───────────┬─────────────┐
│varint: │ │
│body length│frame body │
└───────────┼─────────────┘
reader end ►│