MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decode

Function decode

src/avro/src/decode.rs:2266–2274  ·  view source on GitHub ↗

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

(
    schema: SchemaNode<'a>,
    reader: &'a mut R,
)

Source from the content-addressed store, hash-verified

2264}
2265/// Decode a `Value` from avro format given its `Schema`.
2266pub fn decode<'a, R: AvroRead>(
2267 schema: SchemaNode<'a>,
2268 reader: &'a mut R,
2269) -> Result<Value, AvroError> {
2270 let d = ValueDecoder;
2271 let dsr = GeneralDeserializer { schema };
2272 let val = dsr.deserialize(reader, d)?;
2273 Ok(val)
2274}

Callers 15

new_field_in_middleFunction · 0.70
new_field_at_endFunction · 0.70
default_non_numsFunction · 0.70
from_readerMethod · 0.70
from_avro_datumFunction · 0.70
validate_with_pubkey_v1Function · 0.50
bindMethod · 0.50
tsMethod · 0.50
decode_fromMethod · 0.50
decode_iterMethod · 0.50
protobuf_roundtripFunction · 0.50

Calls 1

deserializeMethod · 0.45

Tested by 6

fetch_state_rollupFunction · 0.40
fetch_state_rollupsFunction · 0.40
blob_batch_partFunction · 0.40
consolidated_sizeFunction · 0.40
shard_statsFunction · 0.40