Files
Geneweb/lib/gwdb-legacy/iovalue.mli
2024-03-05 22:01:20 +01:00

19 lines
883 B
OCaml
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(* $Id: iovalue.mli,v 5.5 2012-01-27 08:53:53 ddr Exp $ *)
(* Copyright (c) 1998-2007 INRIA *)
val sizeof_long : int
(** Size of long integer value inside the Geneweb's binary files *)
val input : in_channel -> 'a
(** Input a value from the giving channel. Identical to [Marshal.from_channel]. *)
val output : out_channel -> 'a -> unit
(** Output a value to the giving channel. Identical to [Marshal.to_channel] with [No_sharing] flag. *)
val output_array_access : out_channel -> (int -> 'a) -> int -> int -> int
(** [output_array_acces oc getf arr_get arr_len pos] prints to the channel
[oc] position for each element (that could be obtained with [arr_get])
in the binary file where marshalled array is stored. Array should be
of length [arr_len] and should start at the position [pos] inside the
binary file. Returns a position just after the end of array. *)