Trait packet::Buffer

source ·
pub trait Buffer: GrowBuffer + ParseBuffer { }
Expand description

A byte buffer used for parsing that can grow back to its original size.

Buffer is a shorthand for GrowBuffer + ParseBuffer. A Buffer can be used for parsing (via ParseBuffer) and then grow back to its original size (via GrowBuffer).



impl<B> Buffer for Bwhere B: GrowBuffer + ParseBuffer,