package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-libs.lazy-containers/Tezos_lazy_containers/Immutable_chunked_byte_vector/Chunk/index.html

Module Immutable_chunked_byte_vector.ChunkSource

Sourcetype t

Chunk within the byte vector

Sourceval of_bytes : bytes -> t

Create a chunk and copy the given bytes into it.

Sourceval to_bytes : t -> bytes

Copy the contents of a chunk into a fresh bytes.

Sourceval size : int64

Size of a chunk in bytes - with 9 bits of address space the chunk is 512 bytes

Sourceval num_needed : int64 -> int64

num_needed len Computes the number of chunks needed to cover len.

encoding is a Tezos_tree_encoding for Chunk.

OCaml

Innovation. Community. Security.