package cpdf

  1. Overview
  2. Docs

Input signature for internal buffers.

type string

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.