Header menu logo B2R2

BinFilePointer 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. Both Offset and MaxOffset are inclusive.

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

BinFilePointer(addr, offset, max)

Full Usage: BinFilePointer(addr, offset, max)

Parameters:
    addr : Addr
    offset : int
    max : int

Returns: BinFilePointer

Initializer

addr : Addr
offset : int
max : int
Returns: BinFilePointer

Static members

Static member Description

BinFilePointer.Advance(p) (amount)

Full Usage: BinFilePointer.Advance(p) (amount)

Parameters:
Returns: BinFilePointer
p : BinFilePointer
amount : int
Returns: BinFilePointer

BinFilePointer.IsNull(ptr)

Full Usage: BinFilePointer.IsNull(ptr)

Parameters:
Returns: bool
ptr : BinFilePointer
Returns: bool

BinFilePointer.IsValid(ptr)

Full Usage: BinFilePointer.IsValid(ptr)

Parameters:
Returns: bool
Modifiers: inline
ptr : BinFilePointer
Returns: bool

BinFilePointer.IsValidAccess(ptr) (size)

Full Usage: BinFilePointer.IsValidAccess(ptr) (size)

Parameters:
Returns: bool
Modifiers: inline
ptr : BinFilePointer
size : int
Returns: bool

BinFilePointer.Null

Full Usage: BinFilePointer.Null

Returns: BinFilePointer
Returns: BinFilePointer

BinFilePointer.OfSection(s)

Full Usage: BinFilePointer.OfSection(s)

Parameters:
Returns: BinFilePointer
s : Section
Returns: BinFilePointer

BinFilePointer.OfSectionOpt(section)

Full Usage: BinFilePointer.OfSectionOpt(section)

Parameters:
Returns: BinFilePointer
section : Section option
Returns: BinFilePointer

Type something to start searching.