<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.3.26207.106" />

System.Reflection.PortableExecutable.PEMemoryBlock

public struct PEMemoryBlock
Represents a block of memory in the Portable Executable (PE) image.
public int Length { get; }

Gets the length of the block.

public Byte* Pointer { get; }

Gets a pointer to the first byte of the block.

public ImmutableArray<byte> GetContent()

Reads the contents of the entire block into an array.

public ImmutableArray<byte> GetContent(int start, int length)

Reads the contents of a part of the block into an array.

Creates a BlobReader for a blob spanning the entire block.

public BlobReader GetReader(int start, int length)

Creates a BlobReader for a blob spanning a part of the block.