Skip to main content

to_bytes

Function to_bytes 

Source
pub fn to_bytes(cv: &CompressedVector) -> Vec<u8> 
Expand description

Serialize cv to a Vec<u8> in the Level-1 wire format.

Layout: 70-byte header | packed indices | residual_flag | [residual_length u32 LE | residual bytes]