Frama-C API - Channel
val open_in_bin : string -> inputOpen the given file for reading in binary mode, and return a new input channel on that file, positioned at the beginning of the file.
val close_in : input -> unitClose the given channel.
val input_value : input -> 'aRead the representation of a structured value, as produced by output_value, and return the corresponding value.
val input_char : input -> charRead one character from the given input channel.
val unsafe_really_input : input -> bytes -> int -> int -> unitunsafe_really_input ic buf pos len reads len characters from channel ic, storing them in byte sequence buf, starting at character number pos. The function is unsafe as no verification is done that 0 <= pos, 0 <= len or Bytes.length buf > pos + len.
val open_out_bin : ?compress:bool -> string -> outputOpen the given file for writing in binary mode, and return a new output channel on that file, positioned at the beginning of the file. If compress is true then the content of the file will be compressed by Compression.
val close_out : output -> unitClose the given channel.
val output_value : output -> 'a -> unitWrite the representation of a structured value of any type to a channel. The object can be read back by input_value.
