Skip to main content

encode_packet

Function encode_packet 

Source
pub fn encode_packet(packet: &PipelinePacket) -> Result<Vec<u8>, WireError>
Expand description

Serialize a PipelinePacket into a self-contained byte buffer.

Returns WireError::UnsupportedDomain for a DataFrame whose memory is device-resident or foreign (only MemoryDomain::System / SystemView can cross a byte transport). The transport is expected to length-frame the returned buffer (the codec produces the body only).