| Directory: | src/ |
|---|---|
| File: | src/utils/data_containers/tlv_item.h |
| Date: | 2026-03-27 13:31:42 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 3 | 3 | 100.0% |
| Branches: | 0 | 0 | -% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <stdint.h> | ||
| 4 | #include <utility> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | struct tlv_item { | ||
| 8 | uint8_t type{}; | ||
| 9 | uint8_t length{}; | ||
| 10 | std::vector<uint8_t> value{}; | ||
| 11 | |||
| 12 | //Quality-of-Life | ||
| 13 | tlv_item() = default; | ||
| 14 | 3 | tlv_item(uint8_t t, uint8_t l, std::vector<uint8_t> v) | |
| 15 | 3 | : type{t}, length{l}, value{std::move(v)} | |
| 16 | 3 | {} | |
| 17 | }; | ||
| 18 |