Skip to main content

write_brdb_component

Function write_brdb_component 

Source
pub fn write_brdb_component(
    schema: &BrdbSchema,
    buf: &mut impl Write,
    ty: &str,
    value: &dyn AsBrdbValue,
) -> Result<(), BrdbSchemaError>
Expand description

Write component data structs. Same as write_brdb but encodes str fields as uint(len) + raw bytes (“wire graph str”) instead of standard msgpack str — the game’s component reader expects this format.