scsl 1.0.1
Shimmering Clarity Standard Library
|
Tag-length-value record with single byte tags and lengths. More...
#include <TLV.h>
Public Attributes | |
uint8_t | Tag |
A Tag is used to identify the type of this record. | |
uint8_t | Len |
Len describes the number of bytes stored in Val. | |
uint8_t | Val [TLV_MAX_LEN] |
Val contains the data in the record. | |
Tag-length-value record with single byte tags and lengths.
TLV records occupy a fixed size in memory, which can be controlled with the TLV_MAX_LEN define. If this isn't defined, it defaults to a size of 253. When writen to an Arena, it occupies Len + 2 bytes. The strings are not null-terminated in the arena.
uint8_t scsl::TLV::Record::Len |
Len describes the number of bytes stored in Val.
uint8_t scsl::TLV::Record::Tag |
A Tag is used to identify the type of this record.
uint8_t scsl::TLV::Record::Val[TLV_MAX_LEN] |
Val contains the data in the record.