plebeia
Functional storage using Merkle Patricia tree
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package plebeia
-
plebeia
-
-
plebeia.msync
-
plebeia.test_utils
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Buffer : sig ... end
Memory buffer
val make : Unix.file_descr -> pos:int64 -> shared:bool -> int64 -> t
make fd ~pos ~shared len
maps the region of the file specified by fd
, pos
, and len
to an mmap. If shared=true
, the modifications to t
is shared with other processes and written back to the file.
val null : t
Build a dummy empty mmap. get_buffer
always fails.
val is_null : t -> bool
val msync : t -> unit
Call msync(2)
to flush the changes to the mapped file
val madvise_random : t -> unit
Get a buffer to read/write the specified region of the mmap
val len : t -> int
The length of the mmap in bytes
val get_char : t -> int -> char
val init : int -> ( int -> char ) -> t
On memory map
ON THIS PAGE
No table of contents