Skip to main content

reserve_declared

Function reserve_declared 

Source
fn reserve_declared(
    buf: &mut MutableBuffer,
    len: usize,
) -> Result<(), ArrowError>
Expand description

Reserves a message’s declared length before copying its first bytes into an empty buf, bounded as in read_body_bounded. Growing with each input buffer instead doubles the capacity, and the decoded batch, which is zero-copy over buf, keeps up to twice its size.