8 #define RDATAFIELDS_H 1
19 class AbstractMessageRenderer;
208 type(type_param),
len(len_param)
295 RdataFields(
const void* fields,
const unsigned int fields_length,
296 const void* data,
const size_t data_length);
306 unsigned int getDataLength()
const {
return (data_length_); }
317 const void*
getData()
const {
return (data_); }
324 sizeof (*fields_)); }
371 FieldSpec
getFieldSpec(
const unsigned int field_id)
const;
402 const FieldSpec* fields_;
403 unsigned int nfields_;
404 const uint8_t* data_;
409 struct RdataFieldsDetail;
410 RdataFieldsDetail* detail_;
415 #endif // RDATAFIELDS_H
FieldSpec(Type type_param, uint16_t len_param)
unsigned int getDataLength() const
Return the length of the entire RDATA encoded in the RdataFields in bytes.
Type
Types of RdataFields fields.
The Rdata class is an abstract base class that provides a set of common interfaces to manipulate conc...
void toWire(AbstractMessageRenderer &renderer) const
Render the RdataFields in the wire format with name compression.
A low-level, RR type-independent representation of DNS RDATA.
Type type
The type of the field.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
unsigned int getFieldSpecDataSize() const
Return the number of bytes the buffer returned by getFieldSpecData() will occupy. ...
Structure that specifies a single RdataFields field.
unsigned int getFieldCount() const
Return the number of specs fields.
const void * getFieldSpecData() const
Return a pointer to a sequence of FieldSpec for the RdataFields.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
const void * getData() const
Return a pointer to the RDATA encoded in the RdataFields.
Defines the logger used by the top-level component of kea-dhcp-ddns.
A domain name subject to name compression.
A domain name that shouldn't be compressed.
uint16_t len
The length of the field in bytes.
~RdataFields()
The destructor.
FieldSpec getFieldSpec(const unsigned int field_id) const
Return the specification of the field identified by the given index.