Module Uutf.Manual
Manual sources and destinations.
Warning. Use only with `Manual
decoder and encoders.
val src : decoder -> Stdlib.Bytes.t -> int -> int -> unit
src d s j l
providesd
withl
bytes to read, starting atj
ins
. This byte range is read by calls to Decode withd
until`Await
is returned. To signal the end of input call the function withl = 0
.
val dst : encoder -> Stdlib.Bytes.t -> int -> int -> unit
dst e s j l
providese
withl
bytes to write, starting atj
ins
. This byte range is written by calls to Encode withe
until`Partial
is returned. Usedst_rem
to know the remaining number of non-written free bytes ins
.
val dst_rem : encoder -> int
dst_rem e
is the remaining number of non-written, free bytes in the last buffer provided withManual.dst
.