You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: FsstEncodingEncoder reuses PTypeIO.set instead of reimplementing it
The private writeUnsigned helper duplicated core.io.PTypeIO.set, the
canonical narrow-ptype write helper (MethodHandle-based, byte-offset
addressed, already used by every other encoder). Its default branch
throwing VortexException was dead: narrowestUnsigned only ever returns
U8/U16/U32, all of which PTypeIO.set handles with identical
little-endian layout and truncation-on-narrowing. Deleted writeUnsigned
and the now-unused VortexException import; the two call sites now pass
idx * ptype.byteSize() as the byte offset, matching the established
PTypeIO.set idiom.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments