Skip to main content

trailer_len

Function trailer_len 

Source
pub const fn trailer_len(flags: u8) -> usize
Expand description

The trailer length implied by flags.

Always TRAILER_LEN for anything this version will accept. The flag is still read, because a record with it clear has to be rejected rather than reinterpreted, and RecordRef::parse is where that happens. See the note on record_flags::CHECKSUMMED for why the flag cannot be allowed to mean what it says.