fn decode_len<R: Read>(reader: &mut R) -> Result<usize, AvroError>