Skip to main content

read_consume_pod

Function read_consume_pod 

Source
pub fn read_consume_pod<T>(window: &mut &[u8]) -> T
Expand description

Trusted-path pod read: panics (via advance_window’s assert) if the window is shorter than size_of::<T>(). Only safe to use on same-process, self-produced buffers (in-proc queue reads, e.g. InProcSerialize::read_value). Payload-derived (untrusted) windows must use try_read_consume_pod.