Skip to main content

uint8_ipc_len

Function uint8_ipc_len 

Source
pub fn uint8_ipc_len(data_len: usize) -> Result<usize>
Expand description

Total IPC stream length for a no-null UInt8 array of data_len elements. Lets a caller size the sample before constructing the message in place via encode_uint8_ipc_header.

Both this and encode_uint8_ipc_header call [uint8_layout] (which builds two flatbuffer headers) internally; a caller that does both prefers PreparedUint8Ipc, which computes the layout once.