Skip to main content

try_read_epoch

Function try_read_epoch 

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

Strictly decode the epoch counter from a control buffer.

ยงErrors

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