Skip to main content

encode_capsule

Function encode_capsule 

Source
pub fn encode_capsule(
    ty: u64,
    payload: &[u8],
    out: &mut [u8],
) -> Result<usize, CapsuleError>
Expand description

Encode type || length || value into out. Payload > 1024 is Capacity.