Open
Conversation
Python bistrings are processed MSB-first, but SBE set types are processed LSB first. Therefore, we need to reverse the encoding/decoding order as parsed. This may need to be tested for sets which are larger than 1 byte
Owner
|
This changes how the parser works. Since I and other users have been using this for real world data and apparently those worked, can you provide some example data of why this change is needed? |
Author
|
Take this set from the CME MDP3 spec: <set name="MatchEventIndicator" encodingType="uInt8">
<choice name="LastTradeMsg" description="1=Last trade message for the event, 0=Not last">0</choice>
<choice name="LastVolumeMsg" description="1=Last electronic volume message, 0=Not last">1</choice>
<choice name="LastQuoteMsg" description="1=Last real quote message, 0=Not last">2</choice>
<choice name="LastStatsMsg" description="1=Last statistics message, 0=Not last">3</choice>
<choice name="LastImpliedMsg" description="1=Last implied quote message, 0=Not last">4</choice>
<choice name="RecoveryMsg" description="1=Message is sent during recovery process">5</choice>
<choice name="Reserved" description="0=Reserved for future use">6</choice>
<choice name="EndOfEvent" description="1=Last message for the event, 0=Not last">7</choice>
</set>The raw value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python bistrings are processed MSB-first, but SBE set types are processed LSB first. Therefore, we need to reverse the encoding/decoding order as parsed.
This may need to be tested for sets which are larger than 1 byte