Closed ghost closed 1 year ago
but it looks like a queue a vec looks like a stacke
why the bytes in BytesMut not move when i call get_u8() if its a vec
A BytesMut has a starting position too, so it can increment the starting position. It's not a ring buffer because it doesn't "wrap around" when you reach the end. The bytes are always stored contiguously.
No, it's basically a
Vec
.