pub fn encode_trunk(
buf: &mut [u8; 4096],
next_trunk: u32,
page_ids: &[u32],
) -> Result<()>Expand description
Encodes a single freelist trunk page into the given buffer.
next_trunk is the page number of the next trunk in the chain, or 0
to mark the end. page_ids must have at most FREELIST_IDS_PER_TRUNK
entries.