Lines Matching refs:BytesMut
6 use bytes::{BufMut, BytesMut};
13 test::black_box(BytesMut::with_capacity(12)); in alloc_small()
21 test::black_box(BytesMut::with_capacity(128)); in alloc_mid()
28 test::black_box(BytesMut::with_capacity(4096)); in alloc_big()
34 let mut buf = BytesMut::with_capacity(4096); in deref_unique()
46 let mut buf = BytesMut::with_capacity(4096); in deref_unique_unroll()
65 let mut buf = BytesMut::with_capacity(4096); in deref_shared()
78 let mut buf1 = BytesMut::with_capacity(8); in deref_two()
81 let mut buf2 = BytesMut::with_capacity(4096); in deref_two()
94 let bytes = BytesMut::from(&b"hello world 1234567890 and have a good byte 0987654321"[..]) in clone_frozen()
108 let mut buf = BytesMut::with_capacity(128); in alloc_write_split_to_mid()
119 let mut buf = BytesMut::with_capacity(1024); in drain_write_drain()
134 let mut buf = BytesMut::with_capacity(128); in fmt_write()
149 let mut buf = BytesMut::with_capacity(256); in bytes_mut_extend()
168 let mut buf = BytesMut::with_capacity(256); in put_slice_bytes_mut()
185 let mut buf = BytesMut::with_capacity(256); in put_u8_bytes_mut()