package bap-std
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=631fc58628418e4856709a0cfc923a65e00c9494fbd28d444c633d11194831de
md5=3db9deac8d429b9b8a8ec9aec54987b1
doc/bap/Bap/Std/Project/Input/index.html
Module Project.Input
Input information.
This module abstracts input type.
type t = input
val file : ?loader:string -> filename:string -> t
file ?loader ~filename
input data from a file, using the specified loader. If loader
is not specified, then some existing loader will be used. If it is specified, then it is first looked up in the available_loaders
and if it is not found, then it will be looked up in the Image.available_backends
.
binary ?base arch ~filename
create an input from a binary file, that is a pure code.
val create :
?finish:(project -> project) ->
arch ->
string ->
code:value memmap ->
data:value memmap ->
t
create arch filename ~code ~data
creates an input from a file, using two memory maps. The code
memmap spans the code in the file, and data
spans the data. An optional finish
function can be used to propagate to the project any additional information that is available to the loader. It defaults to ident
.
val register_loader : string -> (string -> t) -> unit
register_loader name load
register a loader under provided name
. The load
function will be called the filename, and it must return the input
value.