This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
servicepoint-tanks/EndiannessSourceGenerator
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-04-20 15:58:46 +02:00
..
EndiannessGenerator.cs code generator that automatically switches endianness 2024-04-20 15:58:46 +02:00
EndiannessSourceGenerator.csproj code generator that automatically switches endianness 2024-04-20 15:58:46 +02:00
Readme.md code generator that automatically switches endianness 2024-04-20 15:58:46 +02:00

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.