-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for (de)serialization
This commit intoduces (de)serialization of primitive types. It also introduces an additional debug header - magic_enum - to be used in debugging return codes and pretty printing. I think, it should be deleted before this implementation goes to main branch. Signed-off-by: delphi <[email protected]> Signed-off-by: delphi <[email protected]>
- Loading branch information
Showing
11 changed files
with
2,305 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,12 @@ | ||
{%- macro assert(expression) -%} | ||
{%- if options.enable_serialization_asserts -%} | ||
NUNAVUT_ASSERT({{ expression }}); | ||
{%- endif -%} | ||
{%- endmacro -%} | ||
|
||
{% if options.target_endianness == 'little' %} | ||
{% set LITTLE_ENDIAN = True %} | ||
{% elif options.target_endianness in ('any', 'big') %} | ||
{% set LITTLE_ENDIAN = False %} | ||
{% else %}{% assert False %} | ||
{% endif %} |
Oops, something went wrong.