Forum Discussion
BuaChuan
Nov 09, 2022Copper Contributor
Memory<T> How to wrap references unmanaged memory?
Span<T> can pass void* through the constructor to refer to unmanaged Memory, but what about Memory<T>? I didn't find a Mothod to do that. IMemoryOwner<T> contains an property of type Memory<T>. If M...
BuaChuan
Nov 09, 2022Copper Contributor
Why is the document written this way? Can Memory<T> actually reference unmanaged memory? What did I miss?
link:https://learn.microsoft.com/en-us/dotnet/standard/memory-and-spans/memory-t-usage-guidelines