Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No encodingOffset() method in MessageHeader.h #594

Closed
kdoherty2 opened this issue Oct 9, 2018 · 0 comments
Closed

No encodingOffset() method in MessageHeader.h #594

kdoherty2 opened this issue Oct 9, 2018 · 0 comments

Comments

@kdoherty2
Copy link

SBE Tool v1.7.9

We cannot easily verify at compile time that the wire format of MessageHeader classes in different schema files is the same, because the no encodingOffset() method is generated in MessageHeader.h. (The generator allows for reordering of standard header fields, blockLength, templateId, schemaId, versionId.

All other classes in the schema file have encoding offset methods:

static SBE_CONSTEXPR std::size_t quantityEncodingOffset() SBE_NOEXCEPT
{ return 17; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants