code generator that automatically switches endianness
This commit is contained in:
parent
e603c154b9
commit
5532c4f5a8
1 changed files with 291 additions and 34 deletions
5
EndiannessSourceGenerator/Readme.md
Normal file
5
EndiannessSourceGenerator/Readme.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Endianness Source Generator
|
||||
|
||||
When annotating a struct with the `StructEndianness` attribute, this code generator will generate properties for the declared fields.
|
||||
|
||||
Each time a property is read or written, the endianness is converted from runtime endianness to struct endianness or vice-versa.
|
||||
Reference in a new issue