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
For fixed size reads or partial writes, you might not want to read/write to the end of the buffer. In the borrowed case, you would just slice for this, but that isn't possible here. So we probably want some mechanism to limit the usable length of the buffer. For writes, we read out of the filled part, so we should have a start limit too. I.e., we want to have a slice view of the underlying buffer.
An alternative is to properly support 'owned slices' but I think this gets complicated and requires reference counting or similar.
The text was updated successfully, but these errors were encountered:
For fixed size reads or partial writes, you might not want to read/write to the end of the buffer. In the borrowed case, you would just slice for this, but that isn't possible here. So we probably want some mechanism to limit the usable length of the buffer. For writes, we read out of the filled part, so we should have a start limit too. I.e., we want to have a slice view of the underlying buffer.
An alternative is to properly support 'owned slices' but I think this gets complicated and requires reference counting or similar.
The text was updated successfully, but these errors were encountered: