* misc RegionMap and key store methods

This commit is contained in:
Scott Powell
2025-11-03 18:14:44 +11:00
parent 03fc949014
commit f797744f7c
4 changed files with 130 additions and 22 deletions

View File

@@ -17,7 +17,14 @@ class TransportKeyStore {
TransportKey cache_keys[MAX_TKS_ENTRIES];
int num_cache;
void putCache(uint16_t id, const TransportKey& key);
void invalidateCache() { num_cache = 0; }
public:
TransportKeyStore() { num_cache = 0; }
int loadKeysFor(const char* name, uint16_t id, TransportKey keys[], int max_num);
void getAutoKeyFor(uint16_t id, const char* name, TransportKey& dest);
int loadKeysFor(uint16_t id, TransportKey keys[], int max_num);
bool saveKeysFor(uint16_t id, const TransportKey keys[], int num);
bool removeKeys(uint16_t id);
bool clear();
};