Skip to main content

try_read_done_count

Function try_read_done_count 

Source
pub fn try_read_done_count(control_bytes: &[u8]) -> Result<u32, ProtocolError>
Expand description

Strictly decode the kernel’s done_count from a control buffer.

§Errors

Returns ProtocolError when the buffer is not word-aligned or is too short to contain the fixed control header.