Skip to main content

read_ipc_section_at

Function read_ipc_section_at 

Source
pub fn read_ipc_section_at(
    data: &Bytes,
    offset: &mut usize,
) -> Result<RecordBatch, ArrowError>
Expand description

Read a single RecordBatch from an aligned IPC section at offset.

Skips the alignment padding written by write_ipc_section, then reads the stream, advancing offset past the section (padding + stream + EOS).

Zero-copy: array buffers borrow from data’s allocation when data’s base address is at least 64-byte aligned (see write_ipc_section).