Skip to main content

begin_list

Function begin_list 

Source
pub fn begin_list(buf: &mut Vec<u8>, count: u32, elem_align: u32) -> Result<u32>
Expand description

Write a list header (count, then padding so elements start aligned). Returns the list offset to patch into the referencing slot. Elements (count * stride bytes) must be appended immediately after.