コード例 #1
0
        private void CreateBitMaps(DataString dataString)
        {
            DataString bitMapString = dataString.SubString(readerIndex, 16);

            readerIndex = readerIndex + 16;

            BitMaps = new BitMapCollection(bitMapString);

            while (bitMapString.ToBibnaryString()[0] == '1')
            {
                if (dataString.Length < readerIndex + 16)
                {
                    throw new ArgumentException(nameof(DataString));
                }

                bitMapString = dataString.SubString(readerIndex, 16);

                readerIndex = readerIndex + 16;

                BitMaps.AddBitMap(bitMapString);
            }
        }
コード例 #2
0
 public Message(MessageTypeIdentifier mti, DataElementsDefinition dataElementDefinition)
 {
     MessageTypeIdentifier = mti;
     BitMaps      = new BitMapCollection();
     DataElements = new DataElementCollection();
 }