package data-encoding

  1. Overview
  2. Docs

Module Encoding.VariableSource

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

Sourceval string : string encoding
Sourceval string' : string_json_repr -> string encoding
Sourceval bigstring : ?string_json_repr:string_json_repr -> unit -> bigstring encoding
Sourceval array : ?max_length:int -> 'a encoding -> 'a array encoding
  • raises Invalid_argument

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

Sourceval list : ?max_length:int -> 'a encoding -> 'a list encoding
  • raises Invalid_argument

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

OCaml

Innovation. Community. Security.