2018-05-03 08:27:17 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-05-03 11:25:47 +04:00
|
|
|
(** This is for use *within* the data encoding library only. Instead, you should
|
|
|
|
use the corresponding module intended for use: {Data_encoding.Binary}. *)
|
|
|
|
|
2018-05-03 08:27:17 +04:00
|
|
|
val length : 'a Encoding.t -> 'a -> int
|
|
|
|
val read : 'a Encoding.t -> MBytes.t -> int -> int -> (int * 'a) option
|
|
|
|
val write : 'a Encoding.t -> 'a -> MBytes.t -> int -> int option
|
|
|
|
val to_bytes : 'a Encoding.t -> 'a -> MBytes.t
|
|
|
|
val of_bytes : 'a Encoding.t -> MBytes.t -> 'a option
|
|
|
|
val of_bytes_exn : 'a Encoding.t -> MBytes.t -> 'a
|
|
|
|
val to_bytes_list : ?copy_blocks:bool -> int -> 'a Encoding.t -> 'a -> MBytes.t list
|
|
|
|
val fixed_length : 'a Encoding.t -> int option
|
|
|
|
val fixed_length_exn : 'a Encoding.t -> int
|