Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val schedule_read :
[ `read ] t ->
on_eof:(unit -> unit) ->
on_read:(Bigstring.t -> off:int -> len:int -> unit) ->
unit
val write_char : [ `write ] t -> char -> unit
write_char w char
copies hcar
into an internal buffer. If possible, this write will be combined with previous and/or subsequent writes before transmission.
val write_string : [ `write ] t -> ?off:int -> ?len:int -> string -> unit
write_string w ?off ?len str
copies str
into an internal buffer. If possible, this write will be combined with previous and/or subsequent writes before transmission.
val write_bigstring :
[ `write ] t ->
?off:int ->
?len:int ->
Bigstring.t ->
unit
write_bigstring w ?off ?len bs
copies bs
into an internal buffer. If possible, this write will be combined with previous and/or subsequent writes before transmission.
val schedule_bigstring :
[ `write ] t ->
?off:int ->
?len:int ->
Bigstring.t ->
unit
schedule_bigstring w ?off ?len bs
schedules bs
to be transmitted at the next opportunity without performing a copy. bs
should not be modified until a subsequent call to flush
has successfully completed.
val flush : [ `write ] t -> (unit -> unit) -> unit
flush t f
val close : _ t -> unit
close t
closes t
, causing subsequent read or write calls to raise.