Mask (Computing)

In computer science, a mask is some data that, along with an operation, are used in order to extract information stored elsewhere. The most common mask used, also known as a bitmask, extracts the status of certain bits in a binary string or number. For example, if we have the binary string 100111010 and we want to extract the status of the fifth bit counting along from the most significant bit, we would use a bitmask such as 000010000 and use the logical AND operator. Recalling that 1 AND 1 = 1, with 0 otherwise, we find the status of the fifth bit, since
  100111010 AND  000010000 =  000010000 
Likewise we can set the fifth bit by applying the mask to the data using the OR operator. Similarly, we can use a sequence of binary numbers with a piece of data of equal length used to inform as to what parts of the data should be examined. With the logical operator (NOT x) AND y, a 1 in the mask instructs that the binary datum below should be ignored, while 0s in the mask tell that the data below are to be examined. A common type of mask of this type is a subnetwork mask, which is associated with a computer's IP address and used to instruct a router which bits of the address indicate the subdivision of the network the computer is on and which identify the specific computer within the subnetwork.

 

<< PreviousWord BrowserNext >>
umbreon
catskill mountains
list of matsushita products
mad max 4: fury road
anava
panasonic lumix dmc lc1
little red lighthouse
unown
keuka college
keuka park
human resources development canada
jane stewart
catholic encyclopedia
teasel
dipsacus
espeon
philadelphia (movie)
gwadar
denez prigent
li dazhao
samantha morton
johto
bart stupak
pete hoekstra
vern ehlers
in america
christic institute
djimon hounsou
demetrius ypsilanti
nagell lutz theorem
21 grams
zikri
universal quantum computer
the cooler
porygon
special esperanto adverbs
canneto di caronia fires
thirteen (movie)
pieces of april
dale e. kildee
fred upton
nick smith (u.s. politician)
patricia clarkson
invisible records