package octez-l2-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-l2-libs.webassembly-interpreter/Tezos_webassembly_interpreter/Tick_model/index.html
Module Tezos_webassembly_interpreter.Tick_model
This module implements a generic tick model. These values were benchmarked from `MemoryCopy`, `MemoryFill` and `MemoryInit`.
val zero : tickval one : tickval of_int32 : int32 -> tick optionof_int32 i returns the tick representation of i, or None if i is negative.
val of_int32_exn : int32 -> tickof_int32_exn i returns the tick representation of i.
val to_int32 : tick -> int32 optionto_int32 t returns the signed int32 representation of t or None if t overflows the signed int32 representation.
val to_int32_exn : tick -> int32to_int32_exn t returns the signed int32 representation of t.
val of_int64 : int64 -> tick optionof_int64 i returns the tick representation of i, or None if i is negative.
val of_int64_exn : int64 -> tickof_int64_exn i returns the tick representation of i.
val to_int64 : tick -> int64 optionto_int64 t returns the signed int64 representation of t or None if t overflows the signed int64 representation.
val to_int64_exn : tick -> int64to_int64_exn t returns the signed int64 representation of t.
val nop : ticknop consumes zero tick. This is used specifically for `write_debug`.
val ticks_per_byte_copied : tickticks_per_byte_copied is the consumption for a byte read in the memory and written in the memory in the context of reading a chunk of bytes.
val ticks_per_byte_read : tickticks_per_byte_read is the consumption for a byte read from the memory in the context of reading a chunk of bytes.
val ticks_per_byte_written : tickticks_per_byte_written is the consumption for a byte written in the memory in the context of writing a chunk of bytes.