Actions
closed
Want to use prepared buffer with `Array#pack`
Description
Array#pack always returns new allocated String, but sometimes users want to use prepared buffer, especially the packed size is too large.
I often uses Fiddle to call OS APIs, and encounter this problem as every time.
I recommend to add keyword arguments for the purpose.
Array#pack provides @ for offset.
- Tracker changed from Bug to Feature
Accepted.
Matz.
- Status changed from Open to Closed
Applied in changeset r56957.
Supports buffer and offset in Array#pack
- pack.c (pack_pack): Supports
bufferandoffsetinArray#pack.
[Feature #12754] [ruby-dev:49798]
Actions