AyCode.Core/AyCode.Core/docs/BINARY/README.md

3.2 KiB

BINARY — AcBinary serializer

AcBinary serialization system. Primary goal: speed (two-phase scan+serialize, reference tracking, string interning).

Files in this folder

Start here

Start with BINARY_WHYUSE.md (architectural framing — why this serializer over the alternatives), then BINARY_FEATURES.md (feature overview), then BINARY_FORMAT.md (wire-level). BINARY_SGEN.md covers build-time code-gen integration.

Cross-references

  • Serialization overview (Toon vs AcBinary vs AcJson, shared infrastructure): ../../Serializers/README.md
  • SignalR binary transport (uses this serializer): ../../AyCode.Services/docs/SIGNALR_BINARY_PROTOCOL/README.md
  • ASP.NET Core MVC formatter (uses this serializer): ../../AyCode.Services/docs/MVC/README.md
  • Glossary terms: ../../../docs/GLOSSARY.md
  • AyCode.Core/docs/adr/0003-acbinary-streaming-receive-architecture.md — Receive-side streaming architecture (Status: Accepted 2026-05-03, partially executed). Delivered: SegmentBufferReader + SegmentBufferReaderInput consolidated into a single AsyncPipeReaderInput primitive (mirrors send-side AsyncPipeWriterOutput); SignalR receive-side migration completed. Dropped during execution: NamedPipe + FileStream helpers (Steps 4 & 5) — framework stays consumer-implements-transport, exposes only generic PipeWriter / PipeReader primitives.