File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,18 @@ module Low_level : sig
131131 @param sw The handle is closed when [sw] is released, if not closed manually first.
132132 @param close_unix if [true] (the default), calling [close] also closes [fd]. *)
133133 end
134+
135+ module Stream : sig
136+ type 'a t = [`Stream of 'a ] Handle .t
137+
138+ val read_into : [< `Pipe | `TCP | `TTY ] t -> Luv.Buffer .t -> int
139+ (* * [read_into handle buf] reads some bytes from [handle] into [buf] returning the number
140+ of bytes read.
141+ @raise End_of_file if there is no more data to read *)
142+
143+ val write : [ `Stream of [< `Pipe | `TCP | `TTY ] ] Handle .t -> Luv.Buffer .t list -> unit
144+ (* * [write handle bufs] writes the contents of [bufs] to [handle]. *)
145+ end
134146end
135147
136148(* * {1 Eio API} *)
You can’t perform that action at this time.
0 commit comments