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

Function decode

avro/src/decode.rs:72–75  ·  view source on GitHub ↗

Decode a `Value` from avro format given its `Schema`.

(schema: &Schema, reader: &mut R)

Source from the content-addressed store, hash-verified

70 .map_err(|e| Details::ConvertI64ToUsize(e, raw_len))?,
71 )
72}
73
74/// Per-datum decoding state.
75///
76/// Tracks the cumulative number of bytes allocated on behalf of a single
77/// datum, so that nested collections cannot multiply the allocation budget:
78/// every allocation performed while decoding one datum is debited from a

Calls 2

decode_internalFunction · 0.85
get_namesMethod · 0.80