Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Domain name and label handling.
Lookup key for the Trie
.
val to_string_list : t -> string list
to_string_list name
is the label list corresponding to name
.
val of_string_list : string list -> t
of_string_list slist
is the domain name corresponding to label list slist
.
val to_string : t -> string
to_string name
is the normal, human-readable string serialization of name
without the trailing dot.
val of_string : string -> t
of_string name
is the domain name parsed out of the normal, human-readable serialization name
.
val string_to_domain_name : string -> t
string_to_domain_name
is of_string
but retained for backward compatibility.
Parse a t
out of a Cstruct.t
given a set of already observed names from the packet, and the offset we are into the packet.
val marshal :
?compress:bool ->
int Map.t ->
int ->
Cstruct.t ->
t ->
int Map.t * int * Cstruct.t
Construct a Hashcons
character-string from a string.
Construct a Hashcons
domain name (list of labels) from a
t
.