pub fn decode_frames_to_flat(buf: &[u8]) -> Result<Vec<u8>>
Decode ZMTP frames to flat encoding for WASM boundary.
Input: concatenated ZMTP frames. Output: [4B-len, data, 4B-len, data, ...]
[4B-len, data, 4B-len, data, ...]