feature request for _true_ bitpacked arrays
Original Reporter info from Mantis: kays @KaiBurghardt
-
Reporter name: Kai Burghardt
Original Reporter info from Mantis: kays @KaiBurghardt
- Reporter name: Kai Burghardt
Description:
I would appreciate if there were /true/ bitpacked data structures. It is still possible to declare data types that will leave bits unused, compare the following example:
Steps to reproduce:
The following program will report a sizeOf
2 Bytes.
program staticArray(input, output, stdErr);
type
x = (left, right);
y = (up, down);
z = bitpacked array[x, y] of Boolean;
begin
writeLn( sizeOf(z):2, 'B':2);
writeLn(bitSizeOf(z):2, 'b':2);
end.
Frankly, I would have expected a bitSizeOf
4 (four), though.
Additional information:
Using short notation makes no difference. This type definition produces the same:
z = bitpacked array[x] of bitpacked array[y] of Boolean;
Mantis conversion info:
- Mantis ID: 38536
- OS: GNU/Linux
- OS Build: 4.4.0
- Build: 3.2.0+dfsg-7 [2020/08/21]
- Platform: x86_64
- Version: 3.2.0