C# Класс AsmResolver.WindowsAssembly

Represents a windows assembly image.
Наследование: IOffsetConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FileOffsetToRva ( long fileOffset ) : long
FromBytes ( byte bytes ) : WindowsAssembly

Reads a windows assembly image from the given byte array.

FromBytes ( byte bytes, ReadingParameters parameters ) : WindowsAssembly

Reads a windows assembly image from the given byte array, using the specified reading parameters.

FromFile ( string file ) : WindowsAssembly

Reads a windows assembly image from a file.

FromReader ( IBinaryStreamReader stream ) : WindowsAssembly

Reads a windows assembly image from a binary stream.

FromReader ( IBinaryStreamReader stream, ReadingParameters parameters ) : WindowsAssembly

Reads a windows assembly image from a binary stream, using the specified reading parameters.

GetSectionHeaderByFileOffset ( long fileOffset ) : ImageSectionHeader

Determines the image section the given absolute file offset is located at.

GetSectionHeaderByRva ( long rva ) : ImageSectionHeader

Determines the image section the given relative virtual address (RVA) is located at.

RvaToFileOffset ( long rva ) : long
WindowsAssembly ( ) : System

Creates a new empty windows assembly image.

Write ( BuildingParameters parameters ) : void

Rebuilds and writes the assembly to a destination, using the specified building parameters.

Write ( IBinaryStreamWriter writer ) : void

Rebuilds and writes the assembly to a specific binary stream.

Write ( string file ) : void

Rebuilds and writes the assembly to a specific file path.

Приватные методы

Метод Описание
CreateDataDirectoryContext ( ReadingContext context, int directoryIndex ) : ReadingContext
FromReadingContext ( ReadingContext context ) : WindowsAssembly

Описание методов

FileOffsetToRva() публичный Метод

public FileOffsetToRva ( long fileOffset ) : long
fileOffset long
Результат long

FromBytes() публичный статический Метод

Reads a windows assembly image from the given byte array.
public static FromBytes ( byte bytes ) : WindowsAssembly
bytes byte The bytes to read the assembly from.
Результат WindowsAssembly

FromBytes() публичный статический Метод

Reads a windows assembly image from the given byte array, using the specified reading parameters.
public static FromBytes ( byte bytes, ReadingParameters parameters ) : WindowsAssembly
bytes byte The bytes to read the assembly from.
parameters ReadingParameters The extra parameters the reading procedure should use to read the assembly.
Результат WindowsAssembly

FromFile() публичный статический Метод

Reads a windows assembly image from a file.
public static FromFile ( string file ) : WindowsAssembly
file string The path of the file to read.
Результат WindowsAssembly

FromReader() публичный статический Метод

Reads a windows assembly image from a binary stream.
public static FromReader ( IBinaryStreamReader stream ) : WindowsAssembly
stream IBinaryStreamReader The stream reader to use for reading the assembly.
Результат WindowsAssembly

FromReader() публичный статический Метод

Reads a windows assembly image from a binary stream, using the specified reading parameters.
public static FromReader ( IBinaryStreamReader stream, ReadingParameters parameters ) : WindowsAssembly
stream IBinaryStreamReader The stream reader to use for reading the assembly.
parameters ReadingParameters The extra parameters the reading procedure should use to read the assembly.
Результат WindowsAssembly

GetSectionHeaderByFileOffset() публичный Метод

Determines the image section the given absolute file offset is located at.
public GetSectionHeaderByFileOffset ( long fileOffset ) : ImageSectionHeader
fileOffset long The absolute file offset to check.
Результат ImageSectionHeader

GetSectionHeaderByRva() публичный Метод

Determines the image section the given relative virtual address (RVA) is located at.
public GetSectionHeaderByRva ( long rva ) : ImageSectionHeader
rva long The relative virtual address to check.
Результат ImageSectionHeader

RvaToFileOffset() публичный Метод

public RvaToFileOffset ( long rva ) : long
rva long
Результат long

WindowsAssembly() публичный Метод

Creates a new empty windows assembly image.
public WindowsAssembly ( ) : System
Результат System

Write() публичный Метод

Rebuilds and writes the assembly to a destination, using the specified building parameters.
public Write ( BuildingParameters parameters ) : void
parameters AsmResolver.Builder.BuildingParameters The parameters to use for building the assembly image.
Результат void

Write() публичный Метод

Rebuilds and writes the assembly to a specific binary stream.
public Write ( IBinaryStreamWriter writer ) : void
writer IBinaryStreamWriter The writer to write the image to.
Результат void

Write() публичный Метод

Rebuilds and writes the assembly to a specific file path.
public Write ( string file ) : void
file string The file path to write the image to.
Результат void