package tezos-protocol-environment

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val string : int -> string encoding

Encoding of a string whose length does not exceed the specified length. The size field uses the smallest integer that can accommodate the maximum size - e.g., `Uint8 for very short strings, `Uint16 for longer strings, etc.

Attempting to construct a string with a length that is too long causes an Invalid_argument exception.

val bytes : int -> bytes encoding

See string above.

OCaml

Innovation. Community. Security.