Skip to main content

encode

Function encode 

Source
pub fn encode(data: &[u8], output: &mut [u8]) -> Result<usize, RsError>
Expand description

Encodes data (up to 223 bytes) into output (255 bytes).

The output contains the original data followed by 32 parity bytes. Returns the number of bytes written (always 255 for a full block).