C# Class TUP.AsmResolver.ASM.InstructionCollection

A collection of Assembly Instructions with extra functions.
Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: Rex-Hays/GNIDA Class Usage Examples

Méthodes publiques

Méthode Description
Add ( x86Instruction instruction ) : void

Adds an instruction to the Assembly Instruction Collection.

First ( ) : x86Instruction

Gets the first instruction of the collection.

GetAsmCode ( ) : string

Returns the instruction list in string format.

GetInstructionByOffset ( long TargetOffset ) : x86Instruction

Gets the assembly instruction in the application by its offset.

GetInstructionByVirtualOffset ( ulong TargetOffset ) : x86Instruction

Gets the assembly instruction in the application by its virtual offset.

GetInstructionIndexByOffset ( long TargetOffset ) : int

Gets the assembly instruction index by its offset

GetInstructionIndexByVirtualOffset ( ulong TargetOffset ) : int

Gets the assembly instruction in the application by its virtual offset.

IndexOf ( x86Instruction instruction ) : int

Gets the index of a given instruction.

Insert ( int index, x86Instruction instruction ) : void

Inserts at the specified index an instruction into the collection.

Last ( ) : x86Instruction

Gets the last instruction of the collection.

this ( int Index ) : x86Instruction

Gets or sets the instruction at the specific index.

Method Details

Add() public méthode

Adds an instruction to the Assembly Instruction Collection.
public Add ( x86Instruction instruction ) : void
instruction x86Instruction The instruction to add.
Résultat void

First() public méthode

Gets the first instruction of the collection.
public First ( ) : x86Instruction
Résultat x86Instruction

GetAsmCode() public méthode

Returns the instruction list in string format.
public GetAsmCode ( ) : string
Résultat string

GetInstructionByOffset() public méthode

Gets the assembly instruction in the application by its offset.
public GetInstructionByOffset ( long TargetOffset ) : x86Instruction
TargetOffset long The Offset of the instruction go get.
Résultat x86Instruction

GetInstructionByVirtualOffset() public méthode

Gets the assembly instruction in the application by its virtual offset.
public GetInstructionByVirtualOffset ( ulong TargetOffset ) : x86Instruction
TargetOffset ulong The Offset of the instruction go get.
Résultat x86Instruction

GetInstructionIndexByOffset() public méthode

Gets the assembly instruction index by its offset
public GetInstructionIndexByOffset ( long TargetOffset ) : int
TargetOffset long The Offset of the instruction go get.
Résultat int

GetInstructionIndexByVirtualOffset() public méthode

Gets the assembly instruction in the application by its virtual offset.
public GetInstructionIndexByVirtualOffset ( ulong TargetOffset ) : int
TargetOffset ulong The Offset of the instruction go get.
Résultat int

IndexOf() public méthode

Gets the index of a given instruction.
public IndexOf ( x86Instruction instruction ) : int
instruction x86Instruction The instruction to get the index from.
Résultat int

Insert() public méthode

Inserts at the specified index an instruction into the collection.
public Insert ( int index, x86Instruction instruction ) : void
index int The zero-based index at which value should be inserted.
instruction x86Instruction The instruction to insert into the collection.
Résultat void

Last() public méthode

Gets the last instruction of the collection.
public Last ( ) : x86Instruction
Résultat x86Instruction

this() public méthode

Gets or sets the instruction at the specific index.
public this ( int Index ) : x86Instruction
Index int The index of the instruction to get or set.
Résultat x86Instruction