From veswiki
Revision as of 21:22, 16 November 2012 by E5frog (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A bitmask is a binary number which masks another to retrieve or to delete information. For example, a bitmask of %00001110 AND'd to a number with the value %10110011 would retrieve %00000010. Bitmasks can be used to extract small packets of data from a byte, to round a number to the nearest power of two, or see if two bytes are equal.