Skip to main content

write_framed

Function write_framed 

pub(super) fn write_framed(
    file: &mut File,
    write_header: bool,
    payload: &[u8],
) -> Result<()>
Available on crate feature tokio only.
Expand description

Writes the file header first if write_header, then payload, then fsyncs. Shared by a plain append (AppendGuard::append_frame) and a compaction’s from-scratch temp file (Writer::compact).