package containers-data

  1. Overview
  2. Docs
On This Page
  1. Underlying Array
A set of advanced datatypes for containers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

containers-3.17.tbz
sha256=0f70824867269c02bf01ae12206aa47a6f669d69f1954c19e68ece9f444f1cba
sha512=11de2d7b7173659e6b83c487ac116a93d4b780b86da07386e7604f8fd45f6841e93cba59dba59ed7dbf6e1bc26561202ae1d2e7238a12f588dfd557d4f2da589

doc/containers-data/CCRingBuffer/index.html

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