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
Is your feature request related to a problem? Please describe.
Sometimes I use buffers/queues as backups for data that might be re-/needed just-in-case. When it is clear it is no longer needed, I want to discard X many bytes/elements from the buffer/queue.
Describe the solution you'd like
A simple pop/discard function that simply advances the internal pointers of buffers/queues, defacto discarding what was before.
Describe alternatives you've considered
Currently I have to manually create a temporary array on the heap, copy into it, then delete, which is inefficient.
Additional context
Equally beneficial would be able to read any arbitrary segment of existing data/items in the buffer/queue, while keeping the data in the buffer. Although queues have a peek() functionality, it is limited, and it is totally missing for other primitives such as stream buffers.
The text was updated successfully, but these errors were encountered:
@moefear85 Thanks for the feature request. I can't commit to a particular timeline for this feature, but I will bring it up with the rest of the dev team.
Is your feature request related to a problem? Please describe.
Sometimes I use buffers/queues as backups for data that might be re-/needed just-in-case. When it is clear it is no longer needed, I want to discard X many bytes/elements from the buffer/queue.
Describe the solution you'd like
A simple pop/discard function that simply advances the internal pointers of buffers/queues, defacto discarding what was before.
Describe alternatives you've considered
Currently I have to manually create a temporary array on the heap, copy into it, then delete, which is inefficient.
Additional context
Equally beneficial would be able to read any arbitrary segment of existing data/items in the buffer/queue, while keeping the data in the buffer. Although queues have a peek() functionality, it is limited, and it is totally missing for other primitives such as stream buffers.
The text was updated successfully, but these errors were encountered: