pub struct WriteableBytes { /* private fields */ }Expand description
A writeable Bytes.
Has a special allocation method for optimized usage in Kvarn.
Implementations§
source§impl WriteableBytes
impl WriteableBytes
sourcepub fn new() -> WriteableBytes ⓘ
pub fn new() -> WriteableBytes ⓘ
Creates a new writeable buffer. Consider using
Self::with_capacity() if you can estimate the capacity needed.
sourcepub fn with_capacity(capacity: usize) -> WriteableBytes ⓘ
pub fn with_capacity(capacity: usize) -> WriteableBytes ⓘ
Crates a new writeable buffer with a specified capacity.