Skip to main content

batch_slice

Function batch_slice 

Source
pub fn batch_slice(stream: &[u8]) -> Option<&[u8]>
Expand description

Given a full IPC stream, return the schema-less record-batch slice — everything after the schema block, including the trailing 8-byte end-of-stream marker. The marker is what lets the receiver’s persistent decoder flush a 0-row batch (whose body is empty); a non-empty batch never reads it. None if stream is malformed. See [decode_one_batch].