Skip to main content

decode_frames_to_flat

Function decode_frames_to_flat 

Source
pub fn decode_frames_to_flat(buf: &[u8]) -> Result<Vec<u8>>
Expand description

Decode ZMTP frames to flat encoding for WASM boundary.

Input: concatenated ZMTP frames. Output: [4B-len, data, 4B-len, data, ...]