4 types derived from AbstractMemoryBlock
System.Reflection.Metadata (4)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryBlock.cs (1)
12
internal sealed class ByteArrayMemoryBlock :
AbstractMemoryBlock
System\Reflection\Internal\MemoryBlocks\ExternalMemoryBlock.cs (1)
9
internal sealed unsafe class ExternalMemoryBlock :
AbstractMemoryBlock
System\Reflection\Internal\MemoryBlocks\MemoryMappedFileBlock.cs (1)
10
internal sealed unsafe class MemoryMappedFileBlock :
AbstractMemoryBlock
System\Reflection\Internal\MemoryBlocks\NativeHeapMemoryBlock.cs (1)
16
internal sealed class NativeHeapMemoryBlock :
AbstractMemoryBlock
34 references to AbstractMemoryBlock
System.Reflection.Metadata (34)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
32
protected override
AbstractMemoryBlock
GetMemoryBlockImpl(int start, int size)
System\Reflection\Internal\MemoryBlocks\ExternalMemoryBlockProvider.cs (1)
31
protected override
AbstractMemoryBlock
GetMemoryBlockImpl(int start, int size)
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (3)
15
public
AbstractMemoryBlock
GetMemoryBlock()
26
public
AbstractMemoryBlock
GetMemoryBlock(int start, int size)
39
protected abstract
AbstractMemoryBlock
GetMemoryBlockImpl(int start, int size);
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
98
protected override
AbstractMemoryBlock
GetMemoryBlockImpl(int start, int size)
System\Reflection\Metadata\MetadataReaderProvider.cs (5)
27
private
AbstractMemoryBlock
? _lazyMetadataBlock;
33
internal MetadataReaderProvider(
AbstractMemoryBlock
metadataBlock)
265
AbstractMemoryBlock
metadata = GetMetadataBlock();
279
internal
AbstractMemoryBlock
GetMetadataBlock()
288
var
newBlock = _blockProviderOpt.GetMemoryBlock(0, _blockProviderOpt.Size);
System\Reflection\PortableExecutable\PEMemoryBlock.cs (2)
14
private readonly
AbstractMemoryBlock
_block;
17
internal PEMemoryBlock(
AbstractMemoryBlock
block, int offset = 0)
System\Reflection\PortableExecutable\PEReader.cs (19)
40
private
AbstractMemoryBlock
? _lazyMetadataBlock;
41
private
AbstractMemoryBlock
? _lazyImageBlock;
42
private
AbstractMemoryBlock
?[]? _lazyPESectionBlocks;
264
foreach (
var
block in peSectionBlocks)
342
private
AbstractMemoryBlock
GetEntireImageBlock()
346
var
newBlock = GetPEImage().GetMemoryBlock();
359
private
AbstractMemoryBlock
GetMetadataBlock()
368
var
newBlock = GetPEImage().GetMemoryBlock(PEHeaders.MetadataStartOffset, PEHeaders.MetadataSize);
381
private
AbstractMemoryBlock
GetPESectionBlock(int index)
389
Interlocked.CompareExchange(ref _lazyPESectionBlocks, new
AbstractMemoryBlock
[PEHeaders.SectionHeaders.Length], null);
392
AbstractMemoryBlock
? existingBlock = Volatile.Read(ref _lazyPESectionBlocks[index]);
398
AbstractMemoryBlock
newBlock;
495
var
block = GetPESectionBlock(sectionIndex);
558
using (
AbstractMemoryBlock
block = GetPEImage().GetMemoryBlock(position, debugDirectory.Size))
593
private
AbstractMemoryBlock
GetDebugDirectoryEntryDataBlock(DebugDirectoryEntry entry)
613
using (
var
block = GetDebugDirectoryEntryDataBlock(entry))
620
internal static CodeViewDebugDirectoryData DecodeCodeViewDebugDirectoryData(
AbstractMemoryBlock
block)
653
using (
var
block = GetDebugDirectoryEntryDataBlock(entry))
660
internal static PdbChecksumDebugDirectoryData DecodePdbChecksumDebugDirectoryData(
AbstractMemoryBlock
block)
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (2)
43
using
var
block = GetDebugDirectoryEntryDataBlock(entry);
69
internal static unsafe NativeHeapMemoryBlock DecodeEmbeddedPortablePdbDebugDirectoryData(
AbstractMemoryBlock
block)