oracle / truffleruby

A high performance implementation of the Ruby programming language, built on GraalVM.
https://www.graalvm.org/ruby/
Other
2.98k stars 180 forks source link

Array#pack does not support :buffer kwarg #3559

Closed segiddins closed 1 month ago

segiddins commented 2 months ago

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 commented 2 months ago

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