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/tanks-backend/EndiannessSourceGenerator
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-04-21 14:32:29 +02:00
..
Properties move backend to subfolder 2024-04-21 14:32:29 +02:00
EndiannessGenerator.cs move backend to subfolder 2024-04-21 14:32:29 +02:00
EndiannessSourceGenerator.csproj move backend to subfolder 2024-04-21 14:32:29 +02:00
Readme.md move backend to subfolder 2024-04-21 14:32:29 +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.