Module Jsonm.Manual
Manual input sources and output destinations.
Warning. Use only with `Manual
decoders 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 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
.