Encode a record type. More...
#include <Record.h>
Public Types |
Public Member Functions | |
| RecordType () | |
| Construct an unknown type. More... | |
| RecordType (tnf_t tnf) | |
| Construct a type with no value. More... | |
| RecordType (tnf_t tnf, const Span< const uint8_t > &value) | |
| Construct a RecordType from a type name format and its associated value. More... | |
Data Fields | |
| tnf_t | tnf |
| Type name format of the record type. More... | |
| Span< const uint8_t > | value |
| Value associated with the record type. More... | |
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. |