public static ImmutableMemory <T> AsImmutableMemory <T>(this ImmutableArray <T> array, Int32 start, Int32 length) => new ImmutableMemory <T>(array.AsMemory().Slice(start, length));
public unsafe PinnedMetadata(ImmutableArray <byte> metadata) { _handle = metadata.AsMemory().Pin(); this.Size = metadata.Length; this.Reader = new MetadataReader((byte *)_handle.Pointer, Size, MetadataReaderOptions.None, null); }
public static ImmutableMemory <T> AsImmutableMemory <T>(this ImmutableArray <T> array) => new ImmutableMemory <T>(array.AsMemory());
public PinnedBlob(ImmutableArray <byte> blob) : this(blob.AsMemory()) { }