Parameter Make.1-ProScript
type tThe type that will be used to represent contiguous bytes; typically either Bytes.t or Cstruct.t
val equal : t -> t -> boolequal t_a t_bis true if and only if the bufferst_aandt_bcontain the same bytes
val concat : t list -> tconcat b_lsttake a list of buffersb_lst, concatenates them together into one buffer
val of_string : string -> tof_string sconverts a stringsinto a buffer
val of_elem_list : t_elem list -> tof_elem_list elem_lstconcatenates a list of byte elementselem_lstinto a buffer
val of_cstruct : Cstruct.t -> tof_cstruct csconverts a Cstructcsinto a buffer
val to_bytes : t -> Stdlib.Bytes.tto_bytes bconverts a bufferbinto Bytes
val elem_at : t -> int -> t_elemelem_at b igives the byte element at the zero-based positioniof bufferb
val char_of_elem : t_elem -> charchar_of_elem econverts a byte elementeto a character (a byte)
val elem_of_char : char -> t_elemelem_of_char cconvert a bytecinto a buffer element
val hexdump : t -> unithexdump_pp bgives a thunk that pretty-prints the bufferbto standard output
val hexdump_pp : Stdlib.Format.formatter -> t -> unithexdump_pp fmt bgives a thunk that pretty-prints the bufferbto the formatterfmt
val t_from_protobuf : Protobuf.Decoder.t -> tt_from_protobuf dreads the next value from the protobuf decoderdand converts it into a buffer
val t_to_protobuf : t -> Protobuf.Encoder.t -> unitt_to_protobuf b ecreates a thunk which will encode the bufferbwith the protobuf encoderewhen called
module Encoding : Dirsp_proscript.PROSCRIPT_ENCODING with type t = t and type t_elem = t_elemConversions back and forth between various encodings like hexadecimal.
module Crypto : Dirsp_proscript.PROSCRIPT_CRYPTO with type t = tCore cryptographic primitives like SHA-256.