C
C#15mo ago
DecodedLogic

❔ RecyclableMemoryStreams and Sending a Byte Array

I am utilizing RecyclableMemoryStream to pool my memory streams in my networking project, but the issue comes from how Microsoft describes the use of ToArray() to essentially cancel out the benefits of using recyclable streams. I need to pass a byte array across the wire (i.e. I need to pass a byte array to ENet). How do I do this in the most performant way possible and not minimize the benefits of using the RecyclableMemoryStreams library?
2 Replies
DecodedLogic
DecodedLogicOP15mo ago
GitHub
GitHub - microsoft/Microsoft.IO.RecyclableMemoryStream: A library t...
A library to provide pooling for .NET MemoryStream objects to improve application performance. - GitHub - microsoft/Microsoft.IO.RecyclableMemoryStream: A library to provide pooling for .NET Memor...
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server