Open ileixe opened 1 year ago
Currently, BytesMut seems to require buffer allocation when converted from other types: https://docs.rs/bytes/latest/src/bytes/bytes_mut.rs.html#1172
BytesMut
Is there any reason not to provide allocation-free BytesMut constructor like https://docs.rs/bytes/latest/src/bytes/bytes.rs.html#843? (I'd like to use Box<[u8]> to create BytesMut as well. )
Box<[u8]>
Currently,
BytesMut
seems to require buffer allocation when converted from other types: https://docs.rs/bytes/latest/src/bytes/bytes_mut.rs.html#1172Is there any reason not to provide allocation-free
BytesMut
constructor like https://docs.rs/bytes/latest/src/bytes/bytes.rs.html#843? (I'd like to useBox<[u8]>
to createBytesMut
as well. )