-(* 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
* 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
val bitstring_length : bitstring -> int
+(** {3 Bitstring buffer} *)
+
module Buffer : sig
type t
val create : unit -> t
val add_byte : t -> int -> unit
end
+(** {3 Miscellaneous} *)
+
val debug : bool ref
(**/**)