Skip to main content

encode_schema_message

Function encode_schema_message 

Source
pub fn encode_schema_message(data_type: &DataType) -> Result<Vec<u8>>
Expand description

Encode the IPC schema message for data_type as a framed, 64-byte-aligned block (one nullable field named data).

This is the schema prefix of a stream, sent once. A receiver feeds it to a persistent StreamDecoder to prime it, then decodes a sequence of schema-less batch messages from encode_batch_into against the same decoder (the W3 schema-once path).