﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
12	Questions for psBitMask (SDR Section 4.1)	calvin.harman@…	Paul Price	"Below are questions about the coding of the psBitMask utility and requests for 
changes in the documentation and coding implementation.

 - Name. Can we change the name to psBitset rather than psBitMask? Bitset 
classes are common in other libraries/languages and are close to the requested 
psBitMask functionality. Bit masks are generally thought of as constants used 
in binary operations, whereas bit sets are mutable, arbitrary length sets of 
bits.

 - In the psBitMask struct definition, the *bits term is an array of bytes, not 
an array of bits, correct? I ask because some people actually store one char in 
each array index as the character representation of '1' or '0', not the hex 
value. (i.e. bits[0] = '1' not bit[0] = 0x01)

 - The definition of the psBitMask constructor argument is number of bytes, not 
number of bits?

 - I'd like to add a psPrintBitMask() function to return an array of chars so 
that the bit mask can be printed in binary notation (i.e. ""1101110101110""). 
This could be used to check results of binary operations for those of us who 
can't do them in our heads.

 - Should the pointer arguments to psBitMaskSet() and psBitMaskTest() be 
restricted?"	defect	closed	high		PSLib SDRS	unspecified	normal	fixed		
