package protocell

  1. Overview
  2. Docs
type t
type error = [
  1. | `Not_enough_bytes
]
val create : Base.string -> t
val has_more_bytes : t -> Base.bool
val read_byte : t -> (Base.char, [> error ]) Base.Result.t
val read_bytes : t -> Base.int -> (Base.string, [> error ]) Base.Result.t
val read_while : t -> (Base.char -> Base.bool) -> Base.string
OCaml

Innovation. Community. Security.