Skip to main content

read_header

Function read_header 

Source
pub(crate) fn read_header<R: BufRead>(
    reader: R,
) -> Result<(Header, u64), AvroError>
Expand description

Read the Avro file header (magic, metadata, sync marker) from reader.

On success, returns the parsed Header and the number of bytes read from reader.