X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=bitmatch.mli;h=9475f8b676da7741335fdb57c7143d4638ad2d8f;hb=2fecbba3804b3788af08786e580483dac9a45294;hp=f8756599205f077b7a227291ef2a651cd1e18cf8;hpb=edc2d1ee7ef8e5b5716934673c3846a3c40e2ced;p=ocaml-bitstring.git diff --git a/bitmatch.mli b/bitmatch.mli index f875659..9475f8b 100644 --- a/bitmatch.mli +++ b/bitmatch.mli @@ -1,5 +1,5 @@ -(* Bitmatch library. - * Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones +(** Bitmatch library. *) +(* Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -15,13 +15,26 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - * $Id: bitmatch.mli,v 1.7 2008-04-02 08:05:58 rjones Exp $ + * $Id: bitmatch.mli,v 1.8 2008-04-02 08:14:40 rjones Exp $ *) -exception Construct_failure of string * string * int * int +(** + {2 Introduction and examples} + + + {2 Reference} + + {3 Types} +*) type bitstring = string * int * int +(** {3 Exceptions} *) + +exception Construct_failure of string * string * int * int + +(** {3 Bitstrings} *) + val empty_bitstring : bitstring val create_bitstring : int -> bitstring @@ -36,6 +49,8 @@ val hexdump_bitstring : out_channel -> bitstring -> unit val bitstring_length : bitstring -> int +(** {3 Bitstring buffer} *) + module Buffer : sig type t val create : unit -> t @@ -45,6 +60,8 @@ module Buffer : sig val add_byte : t -> int -> unit end +(** {3 Miscellaneous} *) + val debug : bool ref (**/**)