Beispiel #1
0
 public static ImmutableMemory <T> AsImmutableMemory <T>(this ImmutableArray <T> array, Int32 start, Int32 length) => new ImmutableMemory <T>(array.AsMemory().Slice(start, length));
Beispiel #2
0
 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);
 }
Beispiel #3
0
 public static ImmutableMemory <T> AsImmutableMemory <T>(this ImmutableArray <T> array) => new ImmutableMemory <T>(array.AsMemory());
Beispiel #4
0
 public PinnedBlob(ImmutableArray <byte> blob)
     : this(blob.AsMemory())
 {
 }