https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112021-05-05T15:11:40ZRuby Issue Tracking SystemRuby master - Feature #17851: ruby extension for memoryviewhttps://bugs.ruby-lang.org/issues/17851?journal_id=918402021-05-05T15:11:40Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Backport</strong> deleted (<del><i>2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN</i></del>)</li></ul> Ruby master - Feature #17851: ruby extension for memoryviewhttps://bugs.ruby-lang.org/issues/17851?journal_id=918412021-05-05T15:15:30ZEregon (Benoit Daloze)
<ul></ul><p>I think Fiddle::MemoryView is not needed for this.<br>
String#[] can already avoid copying, on CRuby I think only if taking a substring until the end (the case here).</p>
<p>Also if Fiddle::MemoryView returns a mutable/non-read-only view, it seems very difficult to support while not making a copy and keeping the Ruby String working.</p>
<p>Finally, a method on Kernel is most likely not acceptable, we'd want a proper namespace like on Fiddle::MemoryView or so.</p> Ruby master - Feature #17851: ruby extension for memoryviewhttps://bugs.ruby-lang.org/issues/17851?journal_id=918432021-05-05T15:16:04ZEregon (Benoit Daloze)
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-8 priority-4 priority-default closed" href="/issues/17831">Feature #17831</a>: add slice method to Fiddle::MemoryView</i> added</li></ul>