Skip to main content

seal_len

Function seal_len 

Source
pub fn seal_len(buf: &mut [u8], len: usize)
Expand description

Stores len, which is what publishes a record.

Separate from RecordHeader::fill so that the release store in the log is visibly the last thing that happens. The caller does the fence.

ยงPanics

If len is zero, because zero is the end of log sentinel and a record of length zero would end the log at itself.