Skip to main content

try_encode_control_into

Function try_encode_control_into 

Source
pub fn try_encode_control_into(
    shutdown: bool,
    tenant_count: u32,
    observable_slots: u32,
    dst: &mut Vec<u8>,
) -> Result<(), ProtocolError>
Expand description

Strictly encode a control-buffer payload into caller-owned storage.

Clears and resizes dst to the exact control-buffer byte length, reusing any existing allocation.

ยงErrors

Returns ProtocolError when the requested observable region overflows host address space.