6 instantiations of MemoryBlock
System.Reflection.Metadata (6)
System\Reflection\Internal\Utilities\MemoryBlock.cs (2)
38
return new
MemoryBlock
(buffer, length);
105
return new
MemoryBlock
(Pointer + offset, length);
System\Reflection\Metadata\BlobReader.cs (1)
157
return new
MemoryBlock
(_currentPointer + offset, length);
System\Reflection\Metadata\Internal\StringHeap.cs (1)
178
return new
MemoryBlock
(Block.Pointer + offset, length);
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
35
new
MemoryBlock
((byte*)Handle.AddrOfPinnedObject(), Length);
System\Reflection\Metadata\MetadataReader.cs (1)
96
Block = new
MemoryBlock
(metadata, length);
157 references to MemoryBlock
System.Reflection.Metadata (157)
System\Reflection\Internal\Utilities\MemoryBlock.cs (2)
26
internal static
MemoryBlock
CreateChecked(byte* buffer, int length)
102
internal
MemoryBlock
GetMemoryBlockAt(int offset, int length)
System\Reflection\Metadata\BlobReader.cs (4)
17
private readonly
MemoryBlock
_block;
33
: this(
MemoryBlock
.CreateChecked(buffer, length))
38
internal BlobReader(
MemoryBlock
block)
154
internal
MemoryBlock
GetMemoryBlockAt(int offset, int length)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
124
private static
MemoryBlock
GetTableMetadataBlock(this MetadataReader reader, TableIndex tableIndex)
225
private static
MemoryBlock
GetMetadataBlock(this MetadataReader reader, HeapIndex heapIndex)
System\Reflection\Metadata\IL\MethodBodyBlock.cs (3)
14
private readonly
MemoryBlock
_il;
25
MemoryBlock
il,
152
var
ilBlock = reader.GetMemoryBlockAt(0, ilSize);
System\Reflection\Metadata\Internal\BlobHeap.cs (8)
13
internal readonly
MemoryBlock
Block;
16
internal BlobHeap(
MemoryBlock
block, MetadataKind metadataKind)
107
internal
MemoryBlock
GetMemoryBlock(BlobHandle handle)
119
private
MemoryBlock
GetVirtualHandleMemoryBlock(BlobHandle handle)
125
if (!heap.TryGetMemoryBlock(handle.RawValue, out
var
block))
241
var
partBlock = GetMemoryBlock(blobReader.ReadBlobHandle());
245
if (result ==
MemoryBlock
.FastComparisonResult.Inconclusive)
250
if (result ==
MemoryBlock
.FastComparisonResult.Unequal ||
System\Reflection\Metadata\Internal\GuidHeap.cs (2)
10
internal readonly
MemoryBlock
Block;
12
public GuidHeap(
MemoryBlock
block)
System\Reflection\Metadata\Internal\StringHeap.cs (9)
16
internal readonly
MemoryBlock
Block;
19
internal StringHeap(
MemoryBlock
block, MetadataKind metadataKind)
124
private static
MemoryBlock
TrimEnd(
MemoryBlock
block)
152
internal
MemoryBlock
GetMemoryBlock(StringHandle handle)
170
private unsafe
MemoryBlock
GetNonVirtualStringMemoryBlock(StringHandle handle)
185
var
block = GetNonVirtualStringMemoryBlock(handle);
204
private
MemoryBlock
GetVirtualHandleMemoryBlock(StringHandle handle)
211
if (!heap.TryGetMemoryBlock(handle.RawValue, out
var
block))
System\Reflection\Metadata\Internal\Tables.cs (90)
20
internal readonly
MemoryBlock
Block;
26
MemoryBlock
containingBlock,
82
internal readonly
MemoryBlock
Block;
88
MemoryBlock
containingBlock,
135
internal
MemoryBlock
Block;
143
MemoryBlock
containingBlock,
292
internal readonly
MemoryBlock
Block;
297
MemoryBlock
containingBlock,
329
internal readonly
MemoryBlock
Block;
335
MemoryBlock
containingBlock,
374
internal readonly
MemoryBlock
Block;
379
MemoryBlock
containingBlock,
416
internal readonly
MemoryBlock
Block;
423
MemoryBlock
containingBlock,
484
internal readonly
MemoryBlock
Block;
489
MemoryBlock
containingBlock,
515
internal readonly
MemoryBlock
Block;
520
MemoryBlock
containingBlock,
560
internal readonly
MemoryBlock
Block;
567
MemoryBlock
containingBlock,
636
internal
MemoryBlock
Block;
643
MemoryBlock
containingBlock,
686
internal readonly
MemoryBlock
Block;
693
MemoryBlock
containingBlock,
759
internal readonly
MemoryBlock
Block;
770
MemoryBlock
containingBlock,
868
internal readonly
MemoryBlock
Block;
875
MemoryBlock
containingBlock,
933
internal readonly
MemoryBlock
Block;
940
MemoryBlock
containingBlock,
1016
internal
MemoryBlock
Block;
1022
MemoryBlock
containingBlock,
1081
internal readonly
MemoryBlock
Block;
1087
MemoryBlock
containingBlock,
1143
internal readonly
MemoryBlock
Block;
1148
MemoryBlock
containingBlock,
1173
internal readonly
MemoryBlock
Block;
1179
MemoryBlock
containingBlock,
1224
internal readonly
MemoryBlock
Block;
1229
MemoryBlock
containingBlock,
1255
internal
MemoryBlock
Block;
1261
MemoryBlock
containingBlock,
1301
internal readonly
MemoryBlock
Block;
1307
MemoryBlock
containingBlock,
1354
internal readonly
MemoryBlock
Block;
1359
MemoryBlock
containingBlock,
1389
internal readonly
MemoryBlock
Block;
1395
MemoryBlock
containingBlock,
1436
internal readonly
MemoryBlock
Block;
1443
MemoryBlock
containingBlock,
1532
internal readonly
MemoryBlock
Block;
1539
MemoryBlock
containingBlock,
1615
internal readonly
MemoryBlock
Block;
1620
MemoryBlock
containingBlock,
1644
internal readonly
MemoryBlock
Block;
1649
MemoryBlock
containingBlock,
1678
internal readonly
MemoryBlock
Block;
1686
MemoryBlock
containingBlock,
1754
internal readonly
MemoryBlock
Block;
1760
MemoryBlock
containingBlock,
1806
internal readonly
MemoryBlock
Block;
1810
MemoryBlock
containingBlock,
1843
internal readonly
MemoryBlock
Block;
1847
MemoryBlock
containingBlock,
1878
internal readonly
MemoryBlock
Block;
1884
MemoryBlock
containingBlock,
1953
internal readonly
MemoryBlock
Block;
1957
MemoryBlock
containingBlock,
1975
internal readonly
MemoryBlock
Block;
1979
MemoryBlock
containingBlock,
2013
internal readonly
MemoryBlock
Block;
2019
MemoryBlock
containingBlock,
2089
internal readonly
MemoryBlock
Block;
2094
MemoryBlock
containingBlock,
2116
internal readonly
MemoryBlock
Block;
2121
MemoryBlock
containingBlock,
2144
internal readonly
MemoryBlock
Block;
2150
MemoryBlock
containingBlock,
2193
internal readonly
MemoryBlock
Block;
2199
MemoryBlock
containingBlock,
2268
internal readonly
MemoryBlock
Block;
2274
MemoryBlock
containingBlock,
2321
internal readonly
MemoryBlock
Block;
2327
MemoryBlock
containingBlock,
2390
internal readonly
MemoryBlock
Block;
2397
MemoryBlock
containingBlock,
2494
internal readonly
MemoryBlock
Block;
2500
MemoryBlock
containingBlock,
2533
internal readonly
MemoryBlock
Block;
2540
MemoryBlock
containingBlock,
System\Reflection\Metadata\Internal\UserStringHeap.cs (2)
10
internal readonly
MemoryBlock
Block;
12
public UserStringHeap(
MemoryBlock
block)
System\Reflection\Metadata\Internal\VirtualHeap.cs (5)
34
public unsafe
MemoryBlock
GetMemoryBlock() =>
79
public bool TryGetMemoryBlock(uint rawHandle, out
MemoryBlock
block)
83
block = default(
MemoryBlock
);
91
internal
MemoryBlock
AddBlob(uint rawHandle, byte[] value)
95
MemoryBlock
result;
System\Reflection\Metadata\MetadataReader.cs (8)
20
internal readonly
MemoryBlock
Block;
108
InitializeStreamReaders(Block, streamHeaders, out _metadataStreamKind, out
var
metadataTableStream, out
var
pdbStream);
264
in
MemoryBlock
metadataRoot,
267
out
MemoryBlock
metadataTableStream,
268
out
MemoryBlock
standalonePdbStream)
522
internal static void ReadStandalonePortablePdbStream(
MemoryBlock
pdbStreamBlock, int pdbStreamOffset, out DebugMetadataHeader debugMetadataHeader, out int[] externalTableRowCounts)
568
private void InitializeTableReaders(
MemoryBlock
metadataTablesMemoryBlock, HeapSizes heapSizes, int[] rowCounts, int[]? externalRowCountsOpt)
System\Reflection\Metadata\PortablePdb\ImportDefinitionCollection.cs (3)
14
private readonly
MemoryBlock
_block;
16
internal ImportDefinitionCollection(
MemoryBlock
block)
41
internal Enumerator(
MemoryBlock
block)
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (3)
14
private readonly
MemoryBlock
_block;
17
internal SequencePointCollection(
MemoryBlock
block, DocumentHandle document)
45
internal Enumerator(
MemoryBlock
block, DocumentHandle document)
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (16)
21
internal readonly
MemoryBlock
Block;
27
MemoryBlock
containingBlock,
78
internal readonly
MemoryBlock
Block;
84
MemoryBlock
containingBlock,
127
internal readonly
MemoryBlock
Block;
136
MemoryBlock
containingBlock,
246
internal readonly
MemoryBlock
Block;
251
MemoryBlock
containingBlock,
295
internal readonly
MemoryBlock
Block;
301
MemoryBlock
containingBlock,
337
internal readonly
MemoryBlock
Block;
343
MemoryBlock
containingBlock,
396
internal readonly
MemoryBlock
Block;
402
MemoryBlock
containingBlock,
441
internal readonly
MemoryBlock
Block;
449
MemoryBlock
containingBlock,