class output_buffer :?onclose:unit -> unit -> Buffer.t ->
out_obj_channel
The method pos_out
returns the number of written octets.
onclose
: this function is called when the close_out
method is
invoked, just after the underlying descriptor has been closed.