Data_encoding.Binary
val length : 'a encoding -> 'a -> int
val fixed_length : 'a encoding -> int option
val read : 'a encoding -> bytes -> int -> int -> (int * 'a) option
val write : 'a encoding -> 'a -> bytes -> int -> int -> int option
val to_bytes : 'a encoding -> 'a -> bytes option
val to_bytes_exn : 'a encoding -> 'a -> bytes
val of_bytes : 'a encoding -> bytes -> 'a option
exception Write_error of write_error