package gapi-ocaml

  1. Overview
  2. Docs
A simple OCaml client for Google Services

Install

Dune Dependency

Authors

Maintainers

Sources

v0.4.6.tar.gz
sha256=b84b680528a5e050014103a8e7a60a5d43efd5fefc3f838310bd46769775ab48
md5=8ee26acf1f6c6f5e24c7b57fa070a0a2

doc/gapi-ocaml.netstring-local/Netchannels/class-buffered_raw_in_channel/index.html

Class Netchannels.buffered_raw_in_channelSource

This class adds a buffer to the underlying raw_in_channel. * As additional feature, the method enhanced_input_line is a fast * version of input_line that profits from the buffer. * *

  • parameter eol

    The accepted end-of-line delimiters. The method * enhanced_input_line recognizes any of the passed strings as EOL * delimiters. When more than one delimiter matches, the longest * is taken. Defaults to ["\n"] . Note that input_line * always only recognizes "\n" as EOL character, this cannot * be changed. * The delimiter strings must neither be empty, nor longer than * buffer_size. *

    @param buffer_size

    The size of the buffer, by default 4096. *

    @param pass_through

    If the read request has at least this size, * and the buffer is currently empty, the buffer will be bypassed. * Defaults to max_int, i.e. it is off.

method private enhanced_input_line : unit -> string

An improved implementation of input_line that uses the buffer

method private enhanced_input : Bytes.t -> int -> int -> input_result

An improved implementation of input_line that uses the buffer

Works similar to input, but distinguishes between normal data * and end-of-line separators. The latter are returned as * `Separator s. When normal data is found, it is copied to the * string, and `Data n is returned to indicate that n bytes * were copied.

OCaml

Innovation. Community. Security.