Skip to main content

encode_into

Function encode_into 

Source
pub fn encode_into(
    points: &[PointKind],
    edges: &[DispatchEdge],
    waits: &[Wait],
    out: &mut [u8],
) -> Result<usize, EncodeError>
Expand description

Encodes a network into out and returns the number of bytes written.

The network is not validated here; the decoder validates it. Bytes of out after the returned length are left untouched.

ยงErrors