val of_cstruct : Cstruct.t -> (t * Cstruct.t, error) Stdlib.result
of_cstruct buf
attempts to interpret buf
as a UDP header. If successful, it returns Ok (header, payload)
, although payload
may be an empty Cstruct.t .
Udp_packet.Unmarshal
val of_cstruct : Cstruct.t -> (t * Cstruct.t, error) Stdlib.result
of_cstruct buf
attempts to interpret buf
as a UDP header. If successful, it returns Ok (header, payload)
, although payload
may be an empty Cstruct.t .