Quantcast
Channel: nevdull [INSTRUCTABLES]
Viewing all articles
Browse latest Browse all 12

Using Enumerated Types as Bitflags

$
0
0
Using the individual bits in any sized integer is a common and very useful (that is, frugal and parsimonious) way to add flags to a program. Instead of using Boolean values or integer values with may be anywhere from 8-bits (one byte) to even four bytes (32 bits), you can instead "flip" bits inside ...
By: nevdull

Continue Reading »

Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images