package riot

  1. Overview
  2. Docs
type bytestring = t
type t
exception Invalid_position
exception Byte_not_found
val next_bit : t -> int
val next_bits : size:int -> t -> int
val next_byte : t -> bytestring
val next_bytes : size:int -> t -> bytestring
val next_utf8 : t -> bytestring
val next_utf8_seq : len:int -> t -> bytestring
val rest : t -> bytestring
val expect_empty : t -> unit
val expect_bits : t -> int -> unit
val expect_bytes : t -> bytestring -> unit
val expect_literal_int : t -> ?size:int -> int -> unit
val expect_literal_string : t -> ?size:int -> String.t -> unit
OCaml

Innovation. Community. Security.