示例#1
0
 public FITMessage(FITGlobalMessageIds messageType)
     : this(messageType, BitConverter.IsLittleEndian)
 {
 }
示例#2
0
 public FITMessage(FITGlobalMessageIds messageType, bool isLittleEndian)
 {
     m_GlobalMessageType = messageType;
     m_LittleEndian = isLittleEndian;
 }
示例#3
0
        public FITMessage PrefetchMessageOfType(FITGlobalMessageIds messageType)
        {
            if (m_DataStream != null)
            {
                long postitionBookmark = m_DataStream.Position;
                FITMessage readMessage = ReadNextMessage();

                while (readMessage != null &&
                       readMessage.GlobalMessageType != messageType)
                {
                    readMessage = ReadNextMessage();
                }

                // Reset to our original position
                m_DataStream.Seek(postitionBookmark, SeekOrigin.Begin);

                return readMessage;
            }

            return null;
        }