package binsec

  1. Overview
  2. Docs
On This Page
  1. Accessors
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = private
  1. | Address of Virtual_address.t
  2. | Name of string
  3. | Offset of t * int

An abstract representation for binary locations

val of_string : string -> t

Constructors

val name : string -> t
val address : Virtual_address.t -> t
val offset : int -> t -> t
val pp : Stdlib.Format.formatter -> t -> unit
Accessors
val to_virtual_address_from_file : filename:string -> t -> Virtual_address.t option

virtual_address_from_file file t resolves the name Name name w.r.t to the loaded binary from file if needed.

val to_virtual_address : img:Loader.Img.t -> t -> Virtual_address.t option

virtual_address img t resolves the name Name name w.r.t to the loaded img binary if needed.

OCaml

Innovation. Community. Security.