pub fn extract_avro_header(buf: &[u8]) -> Result<(Uuid, &[u8])>Expand description
Parse the Glue Avro header from the front of buf, returning the
schema-version UUID and a subslice covering the record payload.
Returns an error if the buffer is shorter than the fixed header, if the
header-version byte is not 0x03, or if the compression byte is
anything other than 0x00.