net_backend

Function linearize

Source
pub fn linearize(
    pool: &dyn BufferAccess,
    segments: &mut &[TxSegment],
) -> Result<Vec<u8>, GuestMemoryError>
Expand description

Linearizes the next packet in a list of segments, returning the buffer data and advancing the segment list.