encode_record

Function encode_record 

Source
pub fn encode_record(generation: u32, record: RecordRef<'_>) -> [u8; 2048]
Expand description

Encode one record body into a slot image. The payload must fit MAX_PAYLOAD; the commit word stays erased (0xFF) — write_committed_record writes zeros there only after the body lands.