package buffer-pool

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module B : Buffer

Signature

type t
type buffer = B.t
val alloc : t -> int -> B.t

alloc pool size either creates a buffer of length size or gets an existing buffer which is larger than size

val release : t -> buffer -> unit

release pool b returns b to the buffer pool

val make : unit -> t

make () creates a new buffer pool.

OCaml

Innovation. Community. Security.