<PackageReference Include="System.Memory" Version="4.6.3" />

System.Runtime.InteropServices.MemoryMarshal

public static class MemoryMarshal
Provides a collection of methods for interoperating with Memory<T>, ReadOnlyMemory<T>, Span<T>, and ReadOnlySpan<T>.
/* Error decompiling System.Collections.Generic.IEnumerable`1 System.Runtime.InteropServices.MemoryMarshal::ToEnumerable(System.ReadOnlyMemory`1) ---> System.InvalidOperationException: Cannot mutate frozen NullBlockStatement at ICSharpCode.Decompiler.CSharp.Syntax.AstNode.AddChild[T](T child, Role`1 role) in offset 36 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 637 -- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException) -- at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(MethodDefinition methodDefinition, IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 835 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(ITypeDefinition typeDef, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 567 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompileTypes(IEnumerable`1 types, DecompileRun decompileRun, ITypeResolveContext decompilationContext, SyntaxTree syntaxTree) in offset 173 at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileType(FullTypeName fullTypeName) in offset 141 at Relativity.APIReference.TypeDocumentation.b__30_0() in TypeDocumentation.cs:line 270 */