package tezos-store
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
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.
val read_next_block_exn :
Lwt_unix.file_descr ->
(Tezos_store_shared.Block_repr.t * int) Lwt.tread_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.
val read_next_block :
Lwt_unix.file_descr ->
(Tezos_store_shared.Block_repr.t * int) option Lwt.tSame as read_next_block fd but returns None if there was an error.
val pread_block_exn :
Lwt_unix.file_descr ->
file_offset:int ->
(Tezos_store_shared.Block_repr.t * int) Lwt.tpread_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.
val pread_block :
Lwt_unix.file_descr ->
file_offset:int ->
(Tezos_store_shared.Block_repr.t * int) option Lwt.tSame as pread_block fd ~file_offset but returns None if there was an error.