generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 28
Use big int for integer type without max value #65
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
Merged
SebaLukas
merged 5 commits into
EVerest:main
from
SiebrenW:feature/use_big_int_for_integer
Oct 24, 2024
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b751dd2
Use big int for integer type without max value
243ad56
fix decoder for signed datatype with non-strict exi padding
b76f818
add conversion for byte to/from unsigned (bigint) datatype
de69116
increase int buffer and code cleanup
SiebrenW 6781184
Merge branch 'main' into feature/use_big_int_for_integer
SebaLukas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {{ indent * level }}{{ decode_comment }} | ||
| {{ indent * level }}error = exi_basetypes_decoder_nbit_uint(stream, 1, &eventCode); | ||
| {{ indent * level }}if (error == 0) | ||
| {{ indent * level }}{ | ||
| {{ indent * (level + 1) }}error = exi_basetypes_decoder_signed(stream, &{{ type_value }}); | ||
| {{ indent * (level + 1) }}if (error == 0) | ||
| {{ indent * (level + 1) }}{ | ||
| {%- if type_option == 1 %} | ||
| {{ indent * (level + 2) }}{{ type_value }}_isUsed = 1u; | ||
| {%- endif %} | ||
| {{ indent * (level + 2) }}grammar_id = {{ next_grammar_id }}; | ||
| {{ indent * (level + 1) }}} | ||
| {{ indent * (level + 1) }}error = exi_basetypes_decoder_nbit_uint(stream, 1, &eventCode); | ||
| {{ indent * level }}} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {{ indent * level }}error = exi_basetypes_encoder_nbit_uint(stream, 1, 0); | ||
| {{ indent * level }}if (error == EXI_ERROR__NO_ERROR) | ||
| {{ indent * level }}{ | ||
| {{ indent * (level + 1) }}error = exi_basetypes_encoder_signed(stream, &{{ value_parameter }}); | ||
| {{ indent * (level + 1) }}if (error == EXI_ERROR__NO_ERROR) | ||
| {{ indent * (level + 1) }}{ | ||
| {{ indent * (level + 2) }}// encode END Element | ||
| {{ indent * (level + 2) }}error = exi_basetypes_encoder_nbit_uint(stream, 1, 0); | ||
| {{ indent * (level + 2) }}if (error == EXI_ERROR__NO_ERROR) | ||
| {{ indent * (level + 2) }}{ | ||
| {{ indent * (level + 3) }}grammar_id = {{ next_grammar }}; | ||
| {{ indent * (level + 2) }}} | ||
| {{ indent * (level + 1) }}} | ||
| {{ indent * level }}} |
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.