package eio

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module type Pi.SINKSource

type t
val single_write : t -> Cstruct.t list -> int
val copy : t -> src:_ source -> unit

copy t ~src allows for optimising copy operations.

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