pub fn encode_properties(props: &HashMap<String, SochValue>) -> Vec<u8> ⓘExpand description
Encode a HashMap<String, SochValue> as a compact binary value.
Format: [num_entries: u32 BE] { [key_len: u16 BE][key_utf8][value_json_len: u32 BE][value_json] }*
Uses JSON for individual SochValues as a pragmatic choice — the hot path is keys, and values are typically small property bags. A future optimization can replace this with PackedRow encoding without changing the key format.