I have this need where I need to store either:
- up to 8
Booleanvalues in aByte - up to 32
Booleanvalues in a(U)Int32 - up to 64
Booleanvalues in a(U)Int64
Is Byte more suitable than Char for 8-bits?
Do I use signed or unsigned for 32/64-bit?
Is there a Delphi-specific code sample to convert the Byte/Integer to/from an array of Booleans? And to set, say, the N-th item to true/false, such as:
SetItemBoolean(ItemNumber: Integer; Value: Boolean);
I found something to convert from a Char to an array of Booleans, I'm just wondering how to do it for Byte/Integer so I can support a bigger number of Boolean values.