Skip to main content

encode_batch_into

Function encode_batch_into 

Source
pub fn encode_batch_into(array: &ArrayData, dst: &mut [u8]) -> Result<()>
Expand description

Encode array as a schema-less Arrow IPC batch message into dst: the record-batch header block, the body, and a trailing 8-byte end-of-stream marker (no schema prefix). Decoded by a [StreamDecoder] already primed with the matching encode_schema_message. The trailing marker lets the decoder flush a 0-row batch (empty body); a non-empty batch never reads it. dst.len() must equal batch_fast_path_len(array).