File: bproto.mli

package info (click to toggle)
ocamlviz 1.01-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,176 kB
  • sloc: ml: 5,722; makefile: 199
file content (40 lines) | stat: -rw-r--r-- 1,697 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(**************************************************************************)
(*                                                                        *)
(*  Ocamlviz --- real-time profiling tools for Objective Caml             *)
(*  Copyright (C) by INRIA - CNRS - Universite Paris Sud                  *)
(*  Authors: Julien Robert                                                *)
(*           Guillaume Von Tokarski                                       *)
(*           Sylvain Conchon                                              *)
(*           Jean-Christophe Filliatre                                    *)
(*           Fabrice Le Fessant                                           *)
(*  GNU Library General Public License version 2                          *)
(*  See file LICENSE for details                                          *)
(*                                                                        *)
(**************************************************************************)

(** Binary implementation of the protocol *)

val encode_one : Buffer.t -> Protocol.msg -> unit
  (** [encode_one b m] encodes a message [m] in the buffer [b]. *)

val encode : Buffer.t -> Protocol.msg list -> unit
  (** [encode b ml] encodes a message list [ml] in the buffer [b].
  *)

val decode_one : string -> int -> int -> Protocol.msg * int
  (** [decode s first last] decodes messages using
      characters in [s] from [first] to [last];
      returns the messages together with the position right after
      the last decoded message.
  *)
      

(** DEBUG *)
val dump : string -> string -> int -> int -> unit

(*
Local Variables: 
compile-command: "unset LANG; make -C .."
End: 
*)