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
What do you think of a small update to the COS, to support resetting the position, if the data is written to a flat array directly?
The use case is the ability to reuse the same COS with a preallocated buffer.
This should help with some GC concerns around COS.
The effect of resetting the position is achievable by using the Stream ctors on COS, but that means that every byte must go through an intermediary stream before landing in the preallocated buffer.
The text was updated successfully, but these errors were encountered:
Hi,
What do you think of a small update to the COS, to support resetting the position, if the data is written to a flat array directly?
The use case is the ability to reuse the same COS with a preallocated buffer.
This should help with some GC concerns around COS.
The effect of resetting the position is achievable by using the Stream ctors on COS, but that means that every byte must go through an intermediary stream before landing in the preallocated buffer.
The text was updated successfully, but these errors were encountered: