Commit Graph

2 Commits

Author SHA1 Message Date
Erayd
0dac84f1f8
Fix ordering
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-15 08:15:46 +13:00
Steve Gilberd
74f851fd36
Add general-purpose packet cache
This commit adds a caching system that will save packet data in a much
more compact form than the regular MeshPacket protobuf. It cannot be
worked with directly to the same degree (although the packet header is
available), but consumes *much* less memory, and as a result can be used
to temporarily store large numbers of packets.

Cached packets can be retrieved either by their (from, id) tuple, or by
their hash.

This cache is a pre-requisite for the upcoming packet replay feature.
2025-10-14 21:40:45 +13:00