Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array#pack does not support :buffer kwarg #3559

Closed
segiddins opened this issue Apr 28, 2024 · 1 comment
Closed

Array#pack does not support :buffer kwarg #3559

segiddins opened this issue Apr 28, 2024 · 1 comment

Comments

@segiddins
Copy link

It has been supported since at least MRI 3.0 (https://docs.ruby-lang.org/en/3.0/Array.html#method-i-pack), and helps avoid transient string allocations when building up nested binary structures

@andrykonchin
Copy link
Member

Thank you for reporting the issue! Indeed, the buffer option exists for a long time (probably since Ruby 2.4).

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

No branches or pull requests

2 participants