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); } }
public Message(MessageTypeIdentifier mti, DataElementsDefinition dataElementDefinition) { MessageTypeIdentifier = mti; BitMaps = new BitMapCollection(); DataElements = new DataElementCollection(); }