Closed jviotti closed 3 years ago
Variable length strings/data are not field
, they are data
according to the SBE specification. They must also respect the order of field
, group
, and then data
. Look at the Car example. To better understand SBE it is best to start with the specification.
https://github.com/FIXTradingCommunity/fix-simple-binary-encoding/tree/master/v1-0-STANDARD/doc
Ah, I see. It works now. Thanks for the super fast response!
I have the following schema that describes a user as per the GitHub API:
Notice that some of the fields use the
varAsciiEncoding
type as exemplified in thesbe-samples
directory: https://github.com/real-logic/simple-binary-encoding/blob/master/sbe-samples/src/main/resources/common-types.xml.I'm generating C++ code out the schema like this:
According to the samples (https://github.com/real-logic/simple-binary-encoding/blob/master/sbe-samples/src/main/cpp/GeneratedStubExample.cpp), I need to encode the ASCII string members using
.putXXX()
methods.I'm expecting something like this to work, based on the docs & samples:
However
.putLogin()
doesn't seem to exist, and in fact noput
prefixed methods seem to be generated at all:These are all the case-insensitive occurrences of
login
in the generatedGitHubUser.h
file:The one corresponding at line 325 seems to just be a getter:
Am I missing something?