[api] Change decode_varint parameter from ProtoVarIntResult to raw value type

Pass uint32_t (or uint64_t when USE_API_VARINT64 is defined) directly
to decode_varint() instead of the ProtoVarIntResult struct. This
eliminates accessor method overhead in each of the 51 overrides,
replacing value.as_uint32() with direct value usage, value.as_bool()
with value != 0, etc. No vtable growth - single virtual method with
conditionally-typed parameter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
J. Nick Koston
2026-03-08 18:39:59 -10:00
co-authored by Claude Opus 4.6
parent f4724d7797
commit fcd72336f0
5 changed files with 715 additions and 281 deletions
File diff suppressed because it is too large Load Diff