package xmlm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type string = String.t

The type for strings.

type t

The type for buffers.

exception Full

Raised if the buffer cannot be grown.

val create : int -> t

Creates a buffer of the given size.

val add_uchar : t -> int -> unit

Adds the given (guaranteed valid) unicode code point to a buffer.

Raises Full if the buffer cannot be grown.

val clear : t -> unit

Clears the buffer.

val contents : t -> string

Returns the buffer contents.

val length : t -> int

Returns the number of characters contained in the buffer.

OCaml

Innovation. Community. Security.