package index

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

Install

Dune Dependency

Authors

Maintainers

Sources

index-1.3.1.tbz
sha256=c9c662fd314ba06465a12a6362a1f91421d63f77b28930880cb112127e629ee2
sha512=db22d6f986f9ea92c2b6c677c956cdbb8cab4cec57e2828f13560ebe6167a08d1f33332cf8a1a2cdc72cea77a3786d43365181d3fc0a90572fce6212f242836a

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.