C# 클래스 AsmResolver.WindowsAssembly

Represents a windows assembly image.
상속: IOffsetConverter
파일 보기 프로젝트 열기: JerreS/AsmResolver 1 사용 예제들

공개 메소드들

메소드 설명
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