Plasma GitLab Archive
Projects Blog Knowledge

Class Netchannels.output_channel

class output_channel : ?onclose:unit -> unit -> Pervasives.out_channel -> out_obj_channel
Creates an output channel writing into an out_channel.

The method pos_out reflects the real position in the channel as returned by Pervasives.pos_out. This works for both seekable and non-seekable channels.

The method close_out also closes the underlying out_channel.

onclose : this function is called when the close_out method is invoked, just after the underlying out_channel has been closed.

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml