package octez-proto-libs

  1. Overview
  2. Docs
val length : 'a encoding -> 'a -> int
val fixed_length : 'a encoding -> int option
val read : 'a encoding -> MBytes.t -> int -> int -> (int * 'a) option
val write : 'a encoding -> 'a -> MBytes.t -> int -> int -> int option
val to_bytes : 'a encoding -> 'a -> MBytes.t option
val to_bytes_exn : 'a encoding -> 'a -> MBytes.t
val of_bytes : 'a encoding -> MBytes.t -> 'a option
type write_error
exception Write_error of write_error
OCaml

Innovation. Community. Security.