Interface IInputFile
- Namespace
- AsmResolver.IO
- Assembly
- AsmResolver.dll
Represents a file from which binary data can be read.
public interface IInputFile : IDisposable
- Inherited Members
- Extension Methods
Properties
BaseAddress
Gets the base address of the data in this input.
ulong BaseAddress { get; }
Property Value
FilePath
Gets the path to the file on the disk, or null if this file was created from memory.
string? FilePath { get; }
Property Value
Remarks
If this value is null
, then the file fully resides in memory.
Length
Gets the maximum length a single binary stream reader produced by this factory can have.
uint Length { get; }
Property Value
Methods
CreateReader(ulong, uint, uint)
Creates a new binary reader at the provided address.
BinaryStreamReader CreateReader(ulong address, uint rva, uint length)
Parameters
address
ulongThe raw address to start reading from.
rva
uintThe virtual address (relative to the image base) that is associated to the raw address.
length
uintThe number of bytes to read.
Returns
- BinaryStreamReader
The created reader.
Exceptions
- ArgumentOutOfRangeException
Occurs if
address
is not a valid address.- EndOfStreamException
Occurs if
length
is too long.