pub fn frame(envelope: &[u8], image: &[u8], out: &mut [u8]) -> Result<usize>Expand description
Writes a signed update into one block.
§Arguments
envelope- the signed manifest.image- the image it describes.out- where to write the block.
§Returns
How many bytes the block takes.
§Errors
Returns Refusal::Size when the envelope is longer than two bytes can say, or when the
buffer is too small for the block.