Table of Contents

Interface IReadableSegment

Namespace
AsmResolver
Assembly
AsmResolver.dll

Represents a segment with contents that is readable by a binary stream reader.

public interface IReadableSegment : ISegment, IOffsetProvider, IWritable
Inherited Members
Extension Methods

Methods

CreateReader(ulong, uint)

Creates a new binary reader that reads the raw contents of the segment.

BinaryStreamReader CreateReader(ulong fileOffset, uint size)

Parameters

fileOffset ulong

The starting file offset of the reader.

size uint

The number of bytes to read.

Returns

BinaryStreamReader

The created binary reader.

Exceptions

ArgumentOutOfRangeException

Occurs when fileOffset is not within the range of the segment.

EndOfStreamException

Occurs when size indicates a too large length.