diff options
| author | polwex <polwex@sortug.com> | 2025-10-20 13:13:39 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-20 13:13:39 +0700 |
| commit | d21900836f89b2bf9cd55ff1708a4619c8b89656 (patch) | |
| tree | bb3a5842ae408ffa465814c6bbf27a5002866252 /ocaml/lib/state.mli | |
neoinityes
Diffstat (limited to 'ocaml/lib/state.mli')
| -rw-r--r-- | ocaml/lib/state.mli | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ocaml/lib/state.mli b/ocaml/lib/state.mli new file mode 100644 index 0000000..0669fb8 --- /dev/null +++ b/ocaml/lib/state.mli @@ -0,0 +1,13 @@ +open Noun + +type t + +val create : ?initial:noun -> ?pier_path:string -> unit -> t +val event_number : t -> int64 +val arvo_core : t -> noun +val boot : ?events_played:int64 -> t -> noun -> unit +val poke : t -> noun -> noun +val peek : t -> noun -> noun option +val snapshot : t -> bytes * int64 +val load_snapshot : t -> bytes -> int64 -> unit +val close_eventlog : t -> unit |
