Skip to main content

encode_composition_table_bytes

Function encode_composition_table_bytes 

Source
pub fn encode_composition_table_bytes(table: &[(u32, u32, u32)]) -> Vec<u8> 
Expand description

Encode the canonical composition pair table.

Layout: [count: u32 LE] followed by count records of (first: u32 LE, second: u32 LE, composed: u32 LE) - 12 bytes per record. Sorted by (first, second) lexicographic so the runtime helper can binary-search by the combined 64-bit key.