[wpiutil] DataLog: Move schema info to a separate map (#7626)

This commit is contained in:
Peter Johnson
2025-01-03 13:28:50 -08:00
committed by GitHub
parent 93521420c8
commit 148fcdca85
2 changed files with 19 additions and 14 deletions

View File

@@ -514,10 +514,14 @@ class DataLog {
std::vector<Buffer> m_outgoing;
struct EntryInfo {
std::string type;
std::vector<uint8_t> schemaData; // only set for schema entries
int id{0};
};
wpi::StringMap<EntryInfo> m_entries;
struct SchemaInfo {
std::vector<uint8_t> data;
int id{0};
};
wpi::StringMap<SchemaInfo> m_schemas;
struct EntryInfo2 {
std::string metadata;
unsigned int count;