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
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.