Skip to main content

encode_batch

Function encode_batch 

pub fn encode_batch(
    out: &mut Vec<u8>,
    salt: u64,
    header: &BatchHeader,
    sections: &[SectionRef<'_>],
    align: usize,
) -> u64
Expand description

Appends one batch to out, padded to a multiple of align (8 or BLOCK). Returns its chain checksum.