-
Notifications
You must be signed in to change notification settings - Fork 5
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
[1.0] Update FSI serialization to support dynamically sized data and verify a checksum #624
Conversation
static constexpr uint64_t safety_file_version_0 = 0; | ||
static constexpr uint64_t safety_file_version_1 = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these are very useful, but OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe they represent all valid options? 🤷 Not sure, but seems better than just 0 and 1 hard coded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel since version_0
will always be 0
and version_1
will always be 1
, hardcoded is just as good and one less indirection, but personal preference so no need to change.
Note:start |
Add version 1 of FSI safety file.
Added a new
fc::datastream_crc
which usesboost::crc
for checksum. Defaults toboost::crc_32_type
, but anyboost::crc
type will work.Resolves #617