Header menu logo B2R2

InstructionCollection Type

Represents a collection of lifted instructions. When this class is instantiated, it will automatically lift all possible instructions from the given binary, and store them in the internal collection. This is shared across all functions.

Constructors

Constructor Description

InstructionCollection(collector)

Full Usage: InstructionCollection(collector)

Parameters:
Returns: InstructionCollection
collector : IInstructionCollectable
Returns: InstructionCollection

Instance members

Instance member Description

this.Count

Full Usage: this.Count

Returns: int

Number of instructions in the collection.

Returns: int

this.Find

Full Usage: this.Find

Parameters:
Returns: IInstruction

Get the instruction at the given address. Raise an exception if not found.

addr : Addr
Returns: IInstruction

this.TryFind

Full Usage: this.TryFind

Parameters:
Returns: Result<IInstruction, ErrorCase>

Find cached one or parse (and cache) the instruction at the given address.

addr : Addr
Returns: Result<IInstruction, ErrorCase>

Type something to start searching.