Skip to main content

encode_control_batch

Function encode_control_batch 

Source
pub fn encode_control_batch(base_offset: i64, key: Bytes, value: Bytes) -> Bytes
Expand description

Encode a single-record control batch at base_offset with the control bit set, returning the full v2 RecordBatch bytes (CRC computed by the encoder).

ยงPanics

Panics only if the underlying record-batch encoder fails, which cannot happen for an uncompressed in-range single-record batch.