Bitfield

From EDukeWiki
Revision as of 16:55, 23 December 2009 by Hendricks266 (talk | contribs) (Created page with 'A '''bitfield''' is an integer value treated as a sequence of bits (binary digits) which can be toggled individually as flags. In conventional decimal math, each flag is represe...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A bitfield is an integer value treated as a sequence of bits (binary digits) which can be toggled individually as flags. In conventional decimal math, each flag is represented a a power of two number: 1, 2, 4, 8, 16, 32, etc. To toggle each flag, you add them together. The resulting sum is what appears in a variable or structure member.

Notable bitfields include: