A compact bitset implementation used in Ocarina of Time save files
OoT Bitset A no‑frills, zero‑overhead flag system inspired by The Legend of Zelda: Ocarina of Time Implemented in C / C++, and Rust Need to pack hundreds (or thousands) of one‑bit flags—“talked to an NPC”, “opened a chest”, etc.—into a save file without wasting bytes? Ocarina of Time solved this by storing flags in an array of uint16_t words. oot_bitset offers the same trick! I learned about this technique from reading the OoT decompilation project source code. See the original code that imp