Skip to content
This repository
Newer
Older
100644 36 lines (31 sloc) 1.446 kb
fccc6851 » MLstate
2011-06-21 Initial open-source release
1 (*
2 Copyright © 2011 MLstate
3
6fac5ced » Aqua-Ye
2012-07-09 [cleanup] ocamllib: typo on Opa
4 This file is part of Opa.
fccc6851 » MLstate
2011-06-21 Initial open-source release
5
6fac5ced » Aqua-Ye
2012-07-09 [cleanup] ocamllib: typo on Opa
6 Opa is free software: you can redistribute it and/or modify it under the
fccc6851 » MLstate
2011-06-21 Initial open-source release
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
6fac5ced » Aqua-Ye
2012-07-09 [cleanup] ocamllib: typo on Opa
10 Opa is distributed in the hope that it will be useful, but WITHOUT ANY
fccc6851 » MLstate
2011-06-21 Initial open-source release
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
6fac5ced » Aqua-Ye
2012-07-09 [cleanup] ocamllib: typo on Opa
16 along with Opa. If not, see <http://www.gnu.org/licenses/>.
fccc6851 » MLstate
2011-06-21 Initial open-source release
17 *)
18 type extern_flags = Marshal.extern_flags
19 val to_channel : Pervasives.out_channel -> 'a -> extern_flags list -> unit
20 val to_string : 'a -> extern_flags list -> string
21 val to_buffer : string -> int -> int -> 'a -> extern_flags list -> int
22 val from_channel : Pervasives.in_channel -> 'a
23 val from_string : string -> int -> 'a
24 val header_size : int
25 val data_size : string -> int -> int
26 val total_size : string -> int -> int
27
28 (** marshal/unmarshal from a filename
29 these functions remove any function from the serialized structure
30 so that you can serialize them and pretend to unserialize them
31 with a different binary
32 (but of course trying to use these functions anyway will result in
33 an error)
34 *)
35 val marshal_no_fun : out_channel -> 'a -> unit
36 val unmarshal_no_fun : in_channel -> 'a
Something went wrong with that request. Please try again.