Zed_rope.Buffer

# Module Zed_rope.Buffer

    module Buffer: sig .. end

This module is similar of the `Buffer` module of the standard library except that it works with rope.

    type t

Type of rope buffers.

    val create : unit -> t

Create a new empty buffer.

    val add : t -> CamomileLibrary.UChar.t -> unit

`add buffer x` add `x` at the end of `buffer`.

    val contents : t -> Zed_rope.rope

`contents buffer` returns the contents of `buffer` as a rope.

    val reset : t -> unit

`reset buffer` resets `buffer` to its initial state.