mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-22 00:00:15 +02:00
+2
-2
@@ -386,7 +386,7 @@ impl Bytes {
|
|||||||
/// Creates a new `Bytes` with the specified capacity.
|
/// Creates a new `Bytes` with the specified capacity.
|
||||||
///
|
///
|
||||||
/// The returned `Bytes` will be able to hold at least `capacity` bytes
|
/// The returned `Bytes` will be able to hold at least `capacity` bytes
|
||||||
/// without reallocating. If `capacity` is under `3 * size_of::<usize>()`,
|
/// without reallocating. If `capacity` is under `4 * size_of::<usize>() - 1`,
|
||||||
/// then `BytesMut` will not allocate.
|
/// then `BytesMut` will not allocate.
|
||||||
///
|
///
|
||||||
/// It is important to note that this function does not specify the length
|
/// It is important to note that this function does not specify the length
|
||||||
@@ -985,7 +985,7 @@ impl BytesMut {
|
|||||||
/// Creates a new `BytesMut` with the specified capacity.
|
/// Creates a new `BytesMut` with the specified capacity.
|
||||||
///
|
///
|
||||||
/// The returned `BytesMut` will be able to hold at least `capacity` bytes
|
/// The returned `BytesMut` will be able to hold at least `capacity` bytes
|
||||||
/// without reallocating. If `capacity` is under `3 * size_of::<usize>()`,
|
/// without reallocating. If `capacity` is under `4 * size_of::<usize>() - 1`,
|
||||||
/// then `BytesMut` will not allocate.
|
/// then `BytesMut` will not allocate.
|
||||||
///
|
///
|
||||||
/// It is important to note that this function does not specify the length
|
/// It is important to note that this function does not specify the length
|
||||||
|
|||||||
Reference in New Issue
Block a user