public FITMessage(FITGlobalMessageIds messageType) : this(messageType, BitConverter.IsLittleEndian) { }
public FITMessage(FITGlobalMessageIds messageType, bool isLittleEndian) { m_GlobalMessageType = messageType; m_LittleEndian = isLittleEndian; }
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; }