Skip to content

Commit

Permalink
Merge pull request #683 from agmt/to_string
Browse files Browse the repository at this point in the history
[C++] Generate message pretty printers
  • Loading branch information
tmontgomery authored May 28, 2019
2 parents cf0c2f3 + 54291b6 commit ce20691
Show file tree
Hide file tree
Showing 2 changed files with 386 additions and 0 deletions.
1 change: 1 addition & 0 deletions sbe-samples/src/main/cpp/GeneratedStubExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ int main(int argc, const char* argv[])
std::size_t encodeMsgLength = encodeCar(car, buffer, hdr.encodedLength(), sizeof(buffer));

cout << "Encoded Lengths are " << encodeHdrLength << " + " << encodeMsgLength << endl;
cout << "Encoded json: '" << car << "'" << endl;

std::size_t decodeHdrLength = decodeHdr(hdr, buffer, 0, sizeof(buffer));
std::size_t decodeMsgLength = decodeCar(car, buffer, hdr.encodedLength(), hdr.blockLength(), hdr.version(), sizeof(buffer));
Expand Down
Loading

0 comments on commit ce20691

Please sign in to comment.