Skip to content

Add missing signatures for IO::Buffer - #3187

Merged
ksss merged 7 commits into
ruby:masterfrom
hanazuki:IOBuffer-missing
Sep 30, 2026
Merged

ksss merged 7 commits into
ruby:masterfrom
hanazuki:IOBuffer-missing

Conversation

@hanazuki

Copy link
Copy Markdown
Contributor

This patchset adds missing signatures for the following methods to IO::Buffer.

  • #get_values, #set_values
  • .size_of
  • #&, #^, #|, #~, #and!, #not!, #or!, #xor!
  • #each, #each_byte
  • #values
  • #private?, #shared?
  • .for (with block)

Cover integer, float, and mixed reads, and include the supported
128-bit integer buffer types.

Assisted-by: Codex:gpt-6-sol
Assisted-by: Codex:gpt-6-sol
The non-mutating operators allocate plain IO::Buffer objects, while
the bang methods return the receiver and preserve its subclass type.

Assisted-by: Codex:gpt-6-sol
Assisted-by: Codex:gpt-6-sol
Assisted-by: Codex:gpt-6-sol
Assisted-by: Codex:gpt-6.1-sol

@ksss ksss left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

@ksss
ksss added this pull request to the merge queue Sep 30, 2026
Merged via the queue into ruby:master with commit ec70c08 Sep 30, 2026
24 checks passed
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.

2 participants