Binsec.Print_utilsExtra pretty-printing functions
type sformat = (unit, Format.formatter, unit) formattype 'a formatter = Format.formatter -> 'a -> unitpp_list ~pre ~post ~sep pp_e ppf l pretty-prints list l between opening formatting indication pre and closing formatting indication post using pretty-printer pp_e to print its elements, separating by formatting indication sep.
Default values are:
pre and postsepval pp_as_string : ('a -> string) -> 'a formatterpp_as_string f ppf v
val pp_opt_as_string : ('a -> string) -> 'a option formatterval string_from_pp : 'a formatter -> 'a -> stringstring_from_pp pp v renders value v as string according to its pretty-printer pp
val pp_dba_prelude : ?flat_memory:bool -> unit formatterval pp_byte : ?prefixed:bool -> int formatterpp_byte prefixed ppf by prints as hexadecimal byte by into ppf If prefixed is true (default) it also prepends "0x". This function assumes that by is between 0 ad 255.
val pp_to_file : filename:string -> 'a formatter -> 'a -> unit