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

Function encode_to_vec

avro/src/encode.rs:368–372  ·  view source on GitHub ↗
(value: &Value, schema: &Schema)

Source from the content-addressed store, hash-verified

366}
367
368pub fn encode_to_vec(value: &Value, schema: &Schema) -> AvroResult<Vec<u8>> {
369 let mut buffer = Vec::new();
370 encode(value, schema, &mut buffer)?;
371 Ok(buffer)
372}
373
374#[cfg(test)]
375#[allow(clippy::expect_fun_call)]

Callers 1

append_rawMethod · 0.85

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected