val int_to_protocol : int -> protocol optionval of_cstruct : Cstruct.t -> (t * Cstruct.t, error) Stdlib.resultval header_of_cstruct : Cstruct.t -> (t * int, error) Stdlib.resultheader_of_cstruct buf attempts to return t, offset where offset is the first byte of the payload in buf.