package index

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

Install

Dune Dependency

Authors

Maintainers

Sources

index-1.3.3.tbz
sha256=6051cf8cad4ab425d8501063110c1fc91fb86fa90426b094dce34cdea5588a91
sha512=8fda03c25fef27d6744dd3aabc5928184cd62f32d0ab80c7b819b07f046988c83cd70527b87ec44d537d4650ea8b1fb949dc10b2e2acf66def219a4bcf3da022

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

Module Private.RawSource

Raw wraps a file-descriptor with an file-format used internally by Index. The format contains the following header fields:

  • offset: a 64-bit integer, denoting the length of the file containing valid data;
  • version: an 8-byte version string;
  • generation: a 64-bit integer denoting the generation number;
  • fan: a 64-bit length field, followed by a string containing that many bytes.
Sourcetype t

The type of raw file handles.

Construct a raw value from a file descriptor.

Sourceval unsafe_write : t -> off:int64 -> string -> unit
Sourceval unsafe_read : t -> off:int64 -> len:int -> bytes -> int
Sourceval fsync : t -> unit
Sourceval close : t -> unit
Sourceval fstat : t -> Unix.stats
Sourcemodule Version : sig ... end
Sourcemodule Offset : sig ... end
Sourcemodule Generation : sig ... end
Sourcemodule Fan : sig ... end
Sourcemodule Header : sig ... end
OCaml

Innovation. Community. Security.