package index

  1. Overview
  2. Docs
A platform-agnostic multi-level index for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

index-1.3.0.tbz
sha256=d6fc288801f05962203dd820e358843e696cc0be775974df2a9ae9741e871c03
sha512=29b7659bd715e93ae9274db6e62d415bc514dd486dbb61a78f7f53bed421f0935ae3a1b99e19f2f7cebd06a13ba0e03538469ee228ff9feaf0c795e4d28c7410

doc/index.unix/Index_unix/Private/IO/index.html

Module Private.IOSource

Sourcetype t
Sourceval v : ?flush_callback:(unit -> unit) -> readonly:bool -> fresh:bool -> generation:int64 -> fan_size:int64 -> string -> t
Sourceval offset : t -> int64
Sourceval read : t -> off:int64 -> len:int -> bytes -> int
Sourceval clear : generation:int64 -> t -> unit
Sourceval flush : ?no_callback:unit -> ?with_fsync:bool -> t -> unit
Sourceval get_generation : t -> int64
Sourceval set_fanout : t -> string -> unit
Sourceval get_fanout : t -> string
Sourceval rename : src:t -> dst:t -> unit
Sourceval append : t -> string -> unit
Sourceval close : t -> unit
Sourcemodule Lock : sig ... end
Sourcemodule Header : sig ... end
Sourceval exists : string -> bool

exists name is true iff there is a pre-existing IO instance called name.

Sourceval size : t -> int

Returns the true size of the underlying data representation in bytes. Note that this is not necessarily equal to the total size of observable data, which is given by offset.

To be used for debugging purposes only.

OCaml

Innovation. Community. Security.