Frama-C API - Buffer
val create : ?indent:int -> ?margin:int -> unit -> bufferCreate a buffer.
The right-margin is set to ~margin and maximum indentation to ~indent. Default values are those of Format.make_formatter, which are ~indent:68 and ~margin:78 in OCaml 4.05.
val reset : buffer -> unitReset the buffer to its initial empty state.
val add_char : buffer -> char -> unitBuffer-like
val add_string : buffer -> string -> unitBuffer-like
Buffer-like
val add_substring : buffer -> string -> int -> int -> unitBuffer-like
Buffer-like
val bprintf : buffer -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'aPretty printing into the buffer. Similar to Format.fprintf.
val kbprintf : (Stdlib.Format.formatter -> 'a) -> buffer -> ('b, Stdlib.Format.formatter, unit, 'a) Stdlib.format4 -> 'bSame as bprintf above, but instead of returning immediately, passes a formatter to the continuation given as first argument at the end of printing.
