You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which part is this question about
So far, the Buffer doesn't have its own length, which means you can't slice on data with the length you want.:
pubstructBuffer{/// the internal byte buffer.data:Arc<Bytes>,/// The offset into the buffer.offset:usize,}
This is an old question, and related to some bugs (such as #807), and some performance issues (such as #2510)
I reopen this question because we don't reach a consensus.
Personally, I hope Buffer could behave like &[u8] or Arc<Vector>, but we need more discussion.
Additionally, I hope we could reach a consensus, for example:
We should add the length field, because ...
we don't need to add this field, because ...
Describe your question
Additional context
The text was updated successfully, but these errors were encountered:
Which part is this question about
So far, the
Buffer
doesn't have its own length, which means you can't slice on data with the length you want.:This is an old question, and related to some bugs (such as #807), and some performance issues (such as #2510)
I reopen this question because we don't reach a consensus.
Personally, I hope
Buffer
could behave like&[u8]
orArc<Vector>
, but we need more discussion.Additionally, I hope we could reach a consensus, for example:
length
field, because ...Describe your question
Additional context
The text was updated successfully, but these errors were encountered: