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
EncodeError::TooLargeif a count or a point index exceedsu32::MAX.EncodeError::BufferTooSmallifoutis shorter thanencoded_len.