C# Class TUP.AsmResolver.ASM.InstructionCollection

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

Public Methods

Method 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 method

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

First() public method

Gets the first instruction of the collection.
public First ( ) : x86Instruction
return x86Instruction

GetAsmCode() public method

Returns the instruction list in string format.
public GetAsmCode ( ) : string
return string

GetInstructionByOffset() public method

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

GetInstructionByVirtualOffset() public method

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

GetInstructionIndexByOffset() public method

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

GetInstructionIndexByVirtualOffset() public method

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

IndexOf() public method

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

Insert() public method

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

Last() public method

Gets the last instruction of the collection.
public Last ( ) : x86Instruction
return x86Instruction

this() public method

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