42 #ifndef _DWMDNSLABEL_HH_ 43 #define _DWMDNSLABEL_HH_ 67 Label(
const std::string & label);
72 operator std::string ()
const;
80 uint8_t *
Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen)
const;
88 const uint8_t *
Decode(
const uint8_t *pkt,
const uint8_t *ptr,
99 #endif // _DWMDNSLABEL_HH_ uint8_t * Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen) const
Encodes the label into buffer @ pkt of length pktlen, starting at ptr.
Definition: DwmDnsEtcHosts.hh:60
Encapsulates a DNS label.
Definition: DwmDnsLabel.hh:56
const uint8_t * Decode(const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen)
Decodes the label from buffer pkt of length pktlen, starting at ptr.
Label()=default
Default constructor. Creates an empty label.