package gapi-ocaml

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

Creates a raw_out_channel for the passed file descriptor, which must * be open for writing. * * The pos_out method returns logical positions, i.e. it counts the number * of written octets. It is not tried to determine the real file position. * * The method close_out also closes the file descriptor. * * This class also supports Win32 proxy descriptors referring to an output * channel. * *

  • parameter blocking

    Whether the channel waits until it can output if it is not * possible to write to the (non-blocking) descriptor. Defaults to true. *

    @param start_pos_out

    The position to which pos_out is initialized when * the channel is created, by default 0 *

    @param fd_style

    The descriptor style. If omitted, it is automatically * determined if possible.

method pos_out : int

Returns the current channel position. This position can be expected * to be consistent with the returned number of bytes of output, i.e. * when output returns n, the position is advanced by n. * * As seek operations are outside the scope of Netchannels, * implementations may or may not take seek operations into account.

OCaml

Innovation. Community. Security.