package tezos-store

  1. Overview
  2. Docs
Tezos: store for `octez-node`

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-store.unix/Tezos_store_unix/Block_repr_unix/index.html

Module Tezos_store_unix.Block_repr_unixSource

Unix-dependent accessors for Block_repr.

Sourceval read_next_block_exn : Lwt_unix.file_descr -> (Tezos_store_shared.Block_repr.t * int) Lwt.t

read_next_block_exn fd reads from fd and decode the next block found in the descriptor. The fd's offset is moved as a side effect. This returns the decoded block along with the block length (number of bytes) of the encoded block. This function updates the given fd state and may raise Unix.error errors, see Unix.read.

Sourceval read_next_block : Lwt_unix.file_descr -> (Tezos_store_shared.Block_repr.t * int) option Lwt.t

Same as read_next_block fd but returns None if there was an error.

Sourceval pread_block_exn : Lwt_unix.file_descr -> file_offset:int -> (Tezos_store_shared.Block_repr.t * int) Lwt.t

pread_block_exn fd ~file_offset reads from fd and decode the block at offset file_offset in the descriptor. This returns the decoded block along with the block length (number of bytes) of the encoded block. This function may raise Unix.error errors, see Unix.read.

Sourceval pread_block : Lwt_unix.file_descr -> file_offset:int -> (Tezos_store_shared.Block_repr.t * int) option Lwt.t

Same as pread_block fd ~file_offset but returns None if there was an error.

OCaml

Innovation. Community. Security.