plebeia
Merkle Patricia tree implementation
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
2 Types
val create :
?pos:int64 ->
?length:int ->
?hashcons:Hashcons.config ->
string ->
t
Create a new context storage. Note that if the file already exists, create
fails.
The context is created in Writer mode.
pos: the start position in the file length: initial size of the file in bytes
val open_ :
?pos:int64 ->
?hashcons:Hashcons.config ->
mode:Plebeia__Storage.mode ->
string ->
t
Open an existing context storage.
pos: The start position in the file
val close : t -> unit
Closes the context.
If program exits or crashes without closing a context, some data may be lost, even if they are written on the disk.
val mode : t -> Plebeia__Storage.mode
Returns writing mode