Bitstring_lib.BitstringThe Bitstring_lib module provides simple utilities for working with lists used to represent sequences of bits or other elements. It includes different orderings (endianness) and padding utilities.
module type S = sig ... endmodule Msb_first : sig ... endMsb_first treats lists as having the most significant element at the head. Padding is added to the right end of the list.
module Lsb_first : sig ... endLsb_first treats lists as having the least significant element at the head. Padding is added to the left end of the list.
val pad_to_triple_list : default:'a -> 'a list -> 'a Tuple_lib.Triple.t listpad_to_triple_list ~default xs converts a list xs to a list of 3-tuples. If xs does not divide evenly into triples, missing values are filled in with default.