package bitstring

  1. Overview
  2. Docs

Module Bitstring.Buffer

Buffers are mainly used by the BITSTRING constructor, but may also be useful for end users. They work much like the standard library Buffer module.

type t
val create : unit -> t
val contents : t -> bitstring
val add_bits : t -> bytes -> int -> unit
val add_bit : t -> bool -> unit
val add_byte : t -> int -> unit