B2R2


BinaryPointer Type

A pointer to binary, which is used to exclusively point to a portion of a binary, e.g., a section. It holds both the virtual address as well as the file offset.

Record fields

Record Field Description

Addr

Full Usage: Addr

Field type: Addr

Virtual address.

Field type: Addr

MaxOffset

Full Usage: MaxOffset

Field type: int

Max offset that this pointer can point to.

Field type: int

Offset

Full Usage: Offset

Field type: int

File offset.

Field type: int

Constructors

Constructor Description

BinaryPointer(addr, offset, max)

Full Usage: BinaryPointer(addr, offset, max)

Parameters:
    addr : Addr
    offset : int
    max : int

Returns: BinaryPointer

Initializer

addr : Addr
offset : int
max : int
Returns: BinaryPointer

Static members

Static member Description

BinaryPointer.Advance(bp) (amount)

Full Usage: BinaryPointer.Advance(bp) (amount)

Parameters:
Returns: BinaryPointer
bp : BinaryPointer
amount : int
Returns: BinaryPointer

BinaryPointer.IsNull(bp)

Full Usage: BinaryPointer.IsNull(bp)

Parameters:
Returns: bool
bp : BinaryPointer
Returns: bool

BinaryPointer.IsValid(bp)

Full Usage: BinaryPointer.IsValid(bp)

Parameters:
Returns: bool
bp : BinaryPointer
Returns: bool

BinaryPointer.IsValidAccess(bp) (size)

Full Usage: BinaryPointer.IsValidAccess(bp) (size)

Parameters:
Returns: bool
bp : BinaryPointer
size : int
Returns: bool

BinaryPointer.Null

Full Usage: BinaryPointer.Null

Returns: BinaryPointer
Returns: BinaryPointer

BinaryPointer.OfSection(s)

Full Usage: BinaryPointer.OfSection(s)

Parameters:
Returns: BinaryPointer
s : Section
Returns: BinaryPointer

BinaryPointer.OfSectionOpt(section)

Full Usage: BinaryPointer.OfSectionOpt(section)

Parameters:
Returns: BinaryPointer
section : Section option
Returns: BinaryPointer