module type VALUE = sig ... end
type bigstring = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
type 'a blitter = 'a -> int -> bigstring -> int -> int -> unit
val pp_chr : char Fmt.t
val pp_scalar : get:('buffer -> int -> char) -> length:('buffer -> int) -> 'buffer Fmt.t
val pp_string : string Fmt.t
val pp_bytes : Stdlib.Bytes.t Fmt.t
module RBA : Ke.Sigs.Weighted.F
module Buffer : sig ... end
module IOVec : sig ... end
type 'v state =
| Flush of {
} | ||
| Continue of {
} | ||
| End of 'v |
val create : int -> encoder
val has : encoder -> int
val schedule : (encoder -> 'r state) -> length:('v -> int) -> buffer:('v -> Buffer.t) -> ?off:int -> ?len:int -> 'v -> encoder -> 'r state
val schedule_string : (encoder -> 'r state) -> encoder -> ?off:int -> ?len:int -> string -> 'r state
val schedule_bytes : (encoder -> 'r state) -> encoder -> ?off:int -> ?len:int -> Stdlib.Bytes.t -> 'r state
val schedule_bigstring : (encoder -> 'r state) -> encoder -> ?off:int -> ?len:int -> bigstring -> 'r state
val schedulev : (encoder -> 'r state) -> ((Buffer.t -> int) * int option * int option * Buffer.t) list -> encoder -> 'r state
val write : (encoder -> 'r state) -> blit:'v blitter -> length:('v -> int) -> ?off:int -> ?len:int -> 'v -> encoder -> 'r state
val writev : (encoder -> 'r state) -> ('v blitter * ('v -> int) * int option * int option * 'v) list -> encoder -> 'r state
val bigarray_blit_from_string : string blitter
val bigarray_blit_from_bytes : Stdlib.Bytes.t blitter
val write_bytes : ?off:int -> ?len:int -> Stdlib.Bytes.t -> (encoder -> 'r state) -> encoder -> 'r state
val write_bigstring : ?off:int -> ?len:int -> bigstring -> (encoder -> 'r state) -> encoder -> 'r state
module type S = sig ... end