package forester

  1. Overview
  2. Docs

Module Eio_util.NullSinkSource

Sourcetype t = unit
Sourceval single_write : t -> Cstruct.t list -> int
Sourceval copy : t -> src:_ Eio.Flow.source -> unit

copy t ~src allows for optimising copy operations.

If you have no optimisations, you can use simple_copy to implement this using single_write.

OCaml

Innovation. Community. Security.