Trait zenoh_protocol::io::traits::buffer::ConstructibleBuffer
source · pub trait ConstructibleBuffer {
fn with_capacities(slice_capacity: usize, cache_capacity: usize) -> Self;
}Required Methods§
sourcefn with_capacities(slice_capacity: usize, cache_capacity: usize) -> Self
fn with_capacities(slice_capacity: usize, cache_capacity: usize) -> Self
Constructs a split buffer that may accept slice_capacity segments without allocating.
It may also accept receiving cached writes for cache_capacity bytes before needing to reallocate its cache.