Function mz_avro::encode::encode

source ·
pub fn encode(value: &Value, schema: &Schema, buffer: &mut Vec<u8>)
Expand description

Encode a Value into avro format.

NOTE This will not perform schema validation. The value is assumed to be valid with regards to the schema. Schema are needed only to guide the encoding for complex type values.