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