Open
Description
https://github.com/dotnet/runtime/blob/3bacc83b4f3d21df591cc25b667b5198d8cebcff/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MemoryMarshal.cs#L102-L121
(also the ReadOnlySpan<>
overload)
- It doesn't just work on primitive types.
- (Unmanaged) pointers are OK.
- The error message with
ThrowHelper.ThrowInvalidTypeWithPointersNotSupported
is also inaccurate: "...Only value types without pointers or references are supported."
Metadata
Metadata
Assignees
Type
Projects
Status
No status