MCPcopy Create free account
hub / github.com/apache/avro-rs / read

Method read

avro/src/reader/datum.rs:193–202  ·  view source on GitHub ↗
(&self, reader: &mut R)

Source from the content-addressed store, hash-verified

191 Ok(Self {
192 resolved: T::get_schema().try_into()?,
193 human_readable,
194 phantom: PhantomData,
195 })
196 }
197}
198
199impl<T: AvroSchema + DeserializeOwned> SpecificDatumReader<T> {
200 pub fn read<R: Read>(&self, reader: &mut R) -> AvroResult<T> {
201 T::deserialize(SchemaAwareDeserializer::new(
202 reader,
203 self.resolved.get_root_schema(),
204 Config {
205 names: self.resolved.get_names(),

Callers 1

mainFunction · 0.45

Calls 3

get_root_schemaMethod · 0.80
get_namesMethod · 0.80
deserializeFunction · 0.50

Tested by 1

mainFunction · 0.36