scsl 1.0.1
Shimmering Clarity Standard Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
scsl::TLV::Record Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ Len

uint8_t scsl::TLV::Record::Len

Len describes the number of bytes stored in Val.

◆ Tag

uint8_t scsl::TLV::Record::Tag

A Tag is used to identify the type of this record.

◆ Val

uint8_t scsl::TLV::Record::Val[TLV_MAX_LEN]

Val contains the data in the record.


The documentation for this struct was generated from the following file: