Data_encoding.Binaryval length : 'a encoding -> 'a -> intval fixed_length : 'a encoding -> int optionval read : 'a encoding -> bytes -> int -> int -> (int * 'a) optionval write : 'a encoding -> 'a -> bytes -> int -> int -> int optionval to_bytes : 'a encoding -> 'a -> bytes optionval to_bytes_exn : 'a encoding -> 'a -> bytesval of_bytes : 'a encoding -> bytes -> 'a optionexception Write_error of write_error