AyCode.Core/AyCode.Core.Tests/GeneratedWriters
Loretta ac6e66f59f Remove depth param from serializers; use context field
Refactored AcBinary, AcJson, and AcToon serializers to eliminate the explicit depth parameter from all serialization/deserialization methods, generated code, and interfaces. Introduced a global RecursionDepth field on the serialization context, incremented/decremented at recursion entry/exit, and enforced against MaxDepth as a safety net (except when ReferenceHandling=All). Updated all usages, including property, array, and dictionary handling, to use the new context-based depth tracking. Ensured consistency across runtime and generated code.
2026-05-13 23:02:15 +02:00
..
README.md Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
TestOrderWriter.cs Remove depth param from serializers; use context field 2026-05-13 23:02:15 +02:00

README.md

GeneratedWriters

Hand-written examples of the code pattern that the AcBinarySerializable source generator produces.

Key Files

  • TestOrderWriter.cs — Example IGeneratedBinaryWriter: direct property access (no reflection), alphabetical order, value types inline, complex types delegate to runtime. Demonstrates ICache-friendly pattern (~500B vs 27KB runtime).