pub fn encode_edge_value(
from_id: &RecordId,
edge_type: &str,
to_id: &RecordId,
props: &HashMap<String, SochValue>,
) -> Vec<u8> ⓘExpand description
Encode an edge value (from_table, from_id_display, edge_type, to_table, to_id_display + properties).
Format: [edge_type_len: u16 BE][edge_type_utf8][from_rid_str_len: u16 BE][from_rid_str][to_rid_str_len: u16 BE][to_rid_str][properties_bytes]
We store the full RecordId display strings so we can reconstitute them on read without needing another lookup.