package fmlib

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

Conversion of a source of characters to a string.

Parameters

module S : Interfaces.SOURCE with type item = char

Signature

val make : S.t -> t

make s Convert the stream s of characters to a string.

val make_with_size : int -> S.t -> t

make_with_size n s Convert the stream s of characters to a string where n is an estimate of the length of the string.

The function works internally with a buffer. n is used to guide the buffer allocation and the resizing of the buffer. The better the estimate, the fewer buffer allocations and resizes are necessary.

OCaml

Innovation. Community. Security.