You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a rather simple example of pulling length prefixed binaries off the wire and parsing Avro:
let mut buf = Vec::with_capacity(4000);
let payload_size_in_bytes = match reader.read_u32::<BigEndian>() {
Ok(i) => i as usize,
Err(_) => return,
};
buf.resize(payload_size_in_bytes, 0);
if reader.read_exact(&mut buf).is_err() {
return;
}
match serde_avro::de::Deserializer::from_container(&buf[..]) {
Ok(avro_de) => {
}
Err(e) => {
trace!("Failed to deserialize container: {:?}", e.description());
return;
}
}
After constructing the deserializer successfully, is it possible for a user to get at the header details in anyway? I am interested in examining the "type" value indicated in the header.
The text was updated successfully, but these errors were encountered:
I have a rather simple example of pulling length prefixed binaries off the wire and parsing Avro:
After constructing the deserializer successfully, is it possible for a user to get at the header details in anyway? I am interested in examining the "type" value indicated in the header.
The text was updated successfully, but these errors were encountered: