Skip to main content

decode_batch_payload

Function decode_batch_payload 

Source
pub fn decode_batch_payload(data: &[u8]) -> Option<Vec<Vec<u8>>>
Expand description

Decode a batch-framed payload back into individual sub-payloads.

Returns None if the payload does not start with the BATCH_MAGIC header (i.e. it is a plain single-record payload).