|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Fixed-capacity, 1-based slot table for host-API resources. More...
#include <array>#include <cstddef>Go to the source code of this file.
Classes | |
| struct | cdc::plugin_manager::SlotTable< T, N > |
Namespaces | |
| namespace | cdc |
| namespace | cdc::plugin_manager |
Fixed-capacity, 1-based slot table for host-API resources.
Plugins identify host-side resources (HTTP requests, event subscriptions, etc.) by integer handle. The handle is the 1-based slot index; 0 is reserved as "invalid handle". The slot type must expose a bool used member - lookup() returns nullptr for both out-of-range ids and unused slots, so callers cannot accidentally observe a stale slot.
Definition in file SlotTable.h.