pub fn encode_stream(kind: u8, request_id: u16, data: &[u8]) -> Vec<u8> ⓘ
A whole stream (PARAMS, STDIN, STDOUT, STDERR): as many records as it takes, then the empty record that ends it.