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

Function test_decode_array_with_size

avro/src/decode.rs:383–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381
382 Ok(Value::Map(items))
383 }
384 Schema::Union(inner) => {
385 let index = zag_i64(reader)?;
386 let variants = inner.variants();
387 let variant = variants
388 .get(usize::try_from(index).map_err(|e| Details::ConvertI64ToUsize(e, index))?)
389 .ok_or(Details::GetUnionVariant {
390 index,
391 num_variants: variants.len(),
392 })?;

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.85
buildMethod · 0.80

Tested by

no test coverage detected