Top "Bitmask" questions

Bitmask is a technique used to isolate specific bits in a byte in order to work only on the desired ones.

When is it better to store flags as a bitmask rather than using an associative table?

I’m working on an application where users have different permissions to use different features (e.g. Read, Create, Download, …

c# sql-server database-design bitmask
Bash shell, trying to create and evaluate a mask

I'm trying to create a mask and use the bitwise operator "&" to compare to another variable and see the …

bash shell bit-manipulation mask bitmask
I want to calculate the inverse mask for an unsigned char

I would like to calculate an inverse mask for an unsigned char.meaning if the original mask 0xc0 the the …

c bit-manipulation bitmask
Matching bitmasks using bitstrings (instead of ints) in SQL

I found a great resource here ( Comparing two bitmasks in SQL to see if any of the bits match ) for …

sql postgresql match bitmask bitstring
Bitwise subtraction

Given the enum: [Flags] enum foo { a = 1, b = 2, c = 4 } then foo example = a | b; If I don't know if foo …

c# bit-manipulation bitmask
Given a list and a bitmask, how do I return the values at the indices that are True?

I start with the following list s and bitmask b: s = ['baa', 'baa', 'black', 'sheep', 'have', 'you', 'any', 'wool'] b = [1, 0, 0, 0, 1, 1, 1, 0] # …

python list sequence tuples bitmask
Convert a 64 bit integer into 8 separate 1 byte integers in python

In python, I have been given a 64 bit integer. This Integer was created by taking several different 8 bit integers and …

python bitmask