package octez-proto-libs

  1. Overview
  2. Docs

Create encodings that produce data of a variable length when binary encoded. See the preamble for an explanation.

val array : ?max_length:int -> 'a Data_encoding.Encoding.encoding -> 'a array Data_encoding.Encoding.encoding
  • raises Invalid_argument

    if the encoding argument is variable length or may lead to zero-width representation in binary.

val list : ?max_length:int -> 'a Data_encoding.Encoding.encoding -> 'a list Data_encoding.Encoding.encoding
  • raises Invalid_argument

    if the encoding argument is variable length or may lead to zero-width representation in binary.

OCaml

Innovation. Community. Security.