Open oblique opened 5 years ago
These methods enable users to use Buffer without having an intermediate array.
Buffer
For example:
let mut buffer = Buffer::with_capacity(1024); buffer.resize(1024, 0); let len = fill_some_data(buffer.buf_mut()); buffer.truncate(len);
These methods enable users to use
Buffer
without having an intermediate array.For example: