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
Extract encodeUtf8() that writes directly to native memory
via Unsafe.putByte on a running address pointer, with a
single upfront ensureCapacity call for the full UTF-8 length.
Both putUtf8() and putString() now compute utf8Length once,
reserve capacity once, then delegate to encodeUtf8(). This
also eliminates the double string scan that putString()
previously performed (utf8Length + putUtf8's per-char loop
with per-byte ensureCapacity).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments