Skip to main content

splice

Function splice 

Source
pub fn splice(frame: &[u8], fields: &[u8], out: &mut [u8]) -> Option<usize>
Expand description

Write frame’s own encapsulation header followed by fields into out, truncating fields to what fits. Returns the bytes written, or None when frame has no header or out cannot hold one.