![]() |
Mbed OS Reference
|
Encode a record type. More...
#include <Record.h>
Public Types | |
enum | tnf_t { empty = 0x00 , well_known_type = 0x01 , media_type = 0x02 , absolute_uri = 0x03 , external_type = 0x04 , unknown = 0x05 , unchanged = 0x06 } |
Type name format of a record. More... | |
Public Member Functions | |
RecordType () | |
Construct an unknown type. | |
RecordType (tnf_t tnf) | |
Construct a type with no value. | |
RecordType (tnf_t tnf, const Span< const uint8_t > &value) | |
Construct a RecordType from a type name format and its associated value. | |
Data Fields | |
tnf_t | tnf |
Type name format of the record type. | |
Span< const uint8_t > | value |
Value associated with the record type. | |
Encode a record type.
A RecordType is composed of a type name format flag and an optional type value.
enum tnf_t |
Type name format of a record.
RecordType | ( | ) |
RecordType | ( | tnf_t | tnf | ) |
RecordType | ( | tnf_t | tnf, |
const Span< const uint8_t > & | value | ||
) |
Construct a RecordType from a type name format and its associated value.
tnf | The type name format of the record type. |
value | The value associated with the tnf. |