Skip to main content

cbb_to_buffer

Function cbb_to_buffer 

Source
pub fn cbb_to_buffer<F: FnOnce(*mut CBB)>(
    initial_capacity: usize,
    func: F,
) -> Buffer
Expand description

Calls func with a CBB pointer and returns a Buffer of the ultimate contents of that CBB.