Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
1. Mär 2010
Ach menno, hatte mir diese Zahlen als Bit-Positionen gemerkt und nicht als Bit-Anzahl. :oops:
Wenn alles nur ein Bit groß wäre, dann ginge das mit dem SET.
Über ein SET ginge das dann nur noch so, aber dieses wäre umständlich zu nutzen.
X: Set of (characterPositionBit0, characterPositionBit1, characterPositionBit2,
characterPositionBit3, blockBit0, blockBit1, blockBit2, bDBC);...
Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
28. Feb 2010
type cdTextPackage = {packed} record
packType: Byte;
trackNumber: Byte;
sequenceNumber: Byte;
X: Set of (dummy0, bDBC, dummy2, block, characterPosition);
//X: Set of ({ dummy = 0, } bDBC = 1, block = 3, characterPosition = 4);
data: Array of Byte;
crc0: Byte;
crc1: Byte;
end;