Skip to main content

encode_ops

Function encode_ops 

Source
pub fn encode_ops(ops: &[DrawOp]) -> (Vec<f64>, Vec<String>)
Expand description

Encode a display list for a decoder written in another language (Java, C++, JS): the numbers channel, nine f64 slots per record ([kind, a, b, c, d, e, f, g, color], kinds from OpCode), and the texts channel, one entry per record that carries text or variable-length geometry, in record order.