mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
- Wraps all non-main helper functions, structs, and variables in an anonymous namespace to avoid One Definition Rule (ODR) violations. - Capitalizes function names to follow CamelCase conventions (e.g., Unpack, ReadAndUnpack, PollLoop, Handshake). - Renames struct and macro variables (e.g., struct header -> struct Header, maxEventSize -> kMaxEventSize). - Modernizes ParseFromArray calls by replacing them with ParseFromString. - Adds missing standard library includes (<cerrno>, <cstdint>, <array>, <functional>). - Renames the non-templated Unpack front-door function to DispatchMessage to clarify its routing purpose and avoid naming collisions. - Resolves a strict aliasing violation in PollLoop by explicitly casting the file descriptor through intptr_t. PiperOrigin-RevId: 953469340