pub fn make_sections<A: AddOp>(
ops: &[Op<A>],
max_section_size: usize,
) -> Vec<(&[Op<A>], SectionHeader)>Expand description
This takes a large list of ops and divides them into sections that are no larger than max_section_size
ops- The list of ops to divide into sections.max_section_size- The maximum size of each section in output bytes.- Returns a vector of tuples containing the ops for each section and the header for that section.