From veswiki
Revision as of 22:53, 19 November 2004 by Admin (talk)
(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.