Skip to content

Fix pure Ruby ByteBuffer byte range semantics - #331

Open
OskarEichler wants to merge 1 commit into
socketry:mainfrom
OskarEichler:audit/pure-bytebuffer-range
Open

OskarEichler wants to merge 1 commit into
socketry:mainfrom
OskarEichler:audit/pure-bytebuffer-range

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary

Align the pure-Ruby ByteBuffer fallback with byte-oriented native/JRuby behavior: use current-position ranges, advance by bytesize for multibyte strings, validate position against the active limit, and expose the missing size reader.

Verification

  • pure suite: 112 examples, 0 failures, 2 existing pending
  • focused external model, RuboCop, exact package/install
  • Puma, Action Cable, and Songstats Rails boot

Prepared with AI assistance and manually reviewed. DCO 1.1 certified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant