package containers-data

  1. Overview
  2. Docs

Module CCRingBufferSource

Circular Buffer (Deque)

Useful for IO, or as a bounded-size alternative to Queue when batch operations are needed.

status: experimental

Change in the API to provide only a bounded buffer since 1.3

  • since 0.9

Underlying Array

Sourcemodule Array : sig ... end

The abstract type for arrays

Sourcemodule type S = sig ... end
Sourcemodule Byte : S with module Array = Array.Byte

An efficient byte based ring buffer

Sourcemodule MakeFromArray (A : Array.S) : S with module Array = A

Makes a ring buffer module with the given array type

Sourcemodule Make (X : sig ... end) : S with type Array.elt = X.t and type Array.t = X.t array

Buffer using regular arrays

OCaml

Innovation. Community. Security.