Skip to main content

encode_empty_ring

Function encode_empty_ring 

Source
pub fn encode_empty_ring(slot_count: u32) -> Result<Vec<u8>, ProtocolError>
Expand description

Encode an empty ring buffer with slot_count slots.

ยงErrors

Returns ProtocolError when the requested ring size overflows host address space.