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
35 references to AbstractMemoryBlock
System.Reflection.Metadata (35)
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)
16
public
AbstractMemoryBlock
GetMemoryBlock()
27
public
AbstractMemoryBlock
GetMemoryBlock(int start, int size)
40
protected abstract
AbstractMemoryBlock
GetMemoryBlockImpl(int start, int size);
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
101
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 (20)
41
private
AbstractMemoryBlock
? _lazyMetadataBlock;
42
private
AbstractMemoryBlock
? _lazyImageBlock;
43
private
AbstractMemoryBlock
?[]? _lazyPESectionBlocks;
265
foreach (
var
block in peSectionBlocks)
329
AbstractMemoryBlock
memoryBlock = peImage.GetMemoryBlock();
340
private
AbstractMemoryBlock
GetEntireImageBlock()
344
var
newBlock = GetPEImage().GetMemoryBlock();
357
private
AbstractMemoryBlock
GetMetadataBlock()
366
var
newBlock = GetPEImage().GetMemoryBlock(PEHeaders.MetadataStartOffset, PEHeaders.MetadataSize);
379
private
AbstractMemoryBlock
GetPESectionBlock(int index)
387
Interlocked.CompareExchange(ref _lazyPESectionBlocks, new
AbstractMemoryBlock
[PEHeaders.SectionHeaders.Length], null);
390
AbstractMemoryBlock
? existingBlock = Volatile.Read(ref _lazyPESectionBlocks[index]);
396
AbstractMemoryBlock
newBlock;
493
var
block = GetPESectionBlock(sectionIndex);
556
using (
AbstractMemoryBlock
block = GetPEImage().GetMemoryBlock(position, debugDirectory.Size))
591
private
AbstractMemoryBlock
GetDebugDirectoryEntryDataBlock(DebugDirectoryEntry entry)
611
using (
var
block = GetDebugDirectoryEntryDataBlock(entry))
618
internal static CodeViewDebugDirectoryData DecodeCodeViewDebugDirectoryData(
AbstractMemoryBlock
block)
651
using (
var
block = GetDebugDirectoryEntryDataBlock(entry))
658
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)