4 types derived from AbstractMemoryBlock
System.Reflection.Metadata (4)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryBlock.cs (1)
12internal sealed class ByteArrayMemoryBlock : AbstractMemoryBlock
System\Reflection\Internal\MemoryBlocks\ExternalMemoryBlock.cs (1)
9internal sealed unsafe class ExternalMemoryBlock : AbstractMemoryBlock
System\Reflection\Internal\MemoryBlocks\MemoryMappedFileBlock.cs (1)
10internal sealed unsafe class MemoryMappedFileBlock : AbstractMemoryBlock
System\Reflection\Internal\MemoryBlocks\NativeHeapMemoryBlock.cs (1)
16internal sealed class NativeHeapMemoryBlock : AbstractMemoryBlock
35 references to AbstractMemoryBlock
System.Reflection.Metadata (35)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
32protected override AbstractMemoryBlock GetMemoryBlockImpl(int start, int size)
System\Reflection\Internal\MemoryBlocks\ExternalMemoryBlockProvider.cs (1)
31protected override AbstractMemoryBlock GetMemoryBlockImpl(int start, int size)
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (3)
16public AbstractMemoryBlock GetMemoryBlock() 27public AbstractMemoryBlock GetMemoryBlock(int start, int size) 40protected abstract AbstractMemoryBlock GetMemoryBlockImpl(int start, int size);
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
101protected override AbstractMemoryBlock GetMemoryBlockImpl(int start, int size)
System\Reflection\Metadata\MetadataReaderProvider.cs (5)
27private AbstractMemoryBlock? _lazyMetadataBlock; 33internal MetadataReaderProvider(AbstractMemoryBlock metadataBlock) 265AbstractMemoryBlock metadata = GetMetadataBlock(); 279internal AbstractMemoryBlock GetMetadataBlock() 288var newBlock = _blockProviderOpt.GetMemoryBlock(0, _blockProviderOpt.Size);
System\Reflection\PortableExecutable\PEMemoryBlock.cs (2)
14private readonly AbstractMemoryBlock _block; 17internal PEMemoryBlock(AbstractMemoryBlock block, int offset = 0)
System\Reflection\PortableExecutable\PEReader.cs (20)
41private AbstractMemoryBlock? _lazyMetadataBlock; 42private AbstractMemoryBlock? _lazyImageBlock; 43private AbstractMemoryBlock?[]? _lazyPESectionBlocks; 265foreach (var block in peSectionBlocks) 329AbstractMemoryBlock memoryBlock = peImage.GetMemoryBlock(); 340private AbstractMemoryBlock GetEntireImageBlock() 344var newBlock = GetPEImage().GetMemoryBlock(); 357private AbstractMemoryBlock GetMetadataBlock() 366var newBlock = GetPEImage().GetMemoryBlock(PEHeaders.MetadataStartOffset, PEHeaders.MetadataSize); 379private AbstractMemoryBlock GetPESectionBlock(int index) 387Interlocked.CompareExchange(ref _lazyPESectionBlocks, new AbstractMemoryBlock[PEHeaders.SectionHeaders.Length], null); 390AbstractMemoryBlock? existingBlock = Volatile.Read(ref _lazyPESectionBlocks[index]); 396AbstractMemoryBlock newBlock; 493var block = GetPESectionBlock(sectionIndex); 556using (AbstractMemoryBlock block = GetPEImage().GetMemoryBlock(position, debugDirectory.Size)) 591private AbstractMemoryBlock GetDebugDirectoryEntryDataBlock(DebugDirectoryEntry entry) 611using (var block = GetDebugDirectoryEntryDataBlock(entry)) 618internal static CodeViewDebugDirectoryData DecodeCodeViewDebugDirectoryData(AbstractMemoryBlock block) 651using (var block = GetDebugDirectoryEntryDataBlock(entry)) 658internal static PdbChecksumDebugDirectoryData DecodePdbChecksumDebugDirectoryData(AbstractMemoryBlock block)
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (2)
43using var block = GetDebugDirectoryEntryDataBlock(entry); 69internal static unsafe NativeHeapMemoryBlock DecodeEmbeddedPortablePdbDebugDirectoryData(AbstractMemoryBlock block)