bitfield

noun
UK /ˈbɪtfiːld/
US /ˈbɪtfiːld/

A bitfield is a small group of bits kept together in a computer to store several tiny yes-or-no facts at once.

The program uses a bitfield to remember which of eight switches are turned on.


OTHER MEANINGS

2. In C and similar languages, a struct member declared with a fixed number of bits to save memory.

The struct packs three bitfields into a single byte.

3. A data structure where each bit represents a separate boolean flag.

Permissions are stored as a bitfield so each right gets its own bit.

4. A contiguous region of bits addressed as a unit in hardware registers.

The driver reads the status bitfield to check for errors.