Open
Description
Since in version 6.x the data which is received by the consumer is returned to the buffer pool after the call is finished some users (like me) needs to copy that data.
Could you please add a functionality which allows the users to take over the data, so it is not returned to the pool? So the user can return it when it is not needed anymore. (By getting it from the ReadOnlyMemory<byte>
with MemoryMarshall.TryGetArray
, or any other way (*))
For example as in this commit: zgabi@11e72bd
(*): For example passing a custom struct instead of the ReadOnlyMemoryparameter, which has a Takeover or similar method.