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

Function encode_to_vec

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

Source from the content-addressed store, hash-verified

173}
174
175pub fn encode_to_vec(value: &Value, schema: &Schema) -> Vec<u8> {
176 let mut buffer = Vec::new();
177 encode(value, schema, &mut buffer);
178 buffer
179}
180
181#[cfg(test)]
182mod tests {

Callers 5

setMethod · 0.85
encode_data_typeMethod · 0.85
append_rawMethod · 0.85

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected