https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112021-05-04T13:19:02ZRuby Issue Tracking SystemRuby master - Feature #17832: allow IO write to write memoryview object without copying or add IO#write_memoryviewhttps://bugs.ruby-lang.org/issues/17832?journal_id=918062021-05-04T13:19:02Zdsisnero (Dominic Sisneros)dsisnero@gmail.com
<ul></ul><p>any comments on this feature request?</p> Ruby master - Feature #17832: allow IO write to write memoryview object without copying or add IO#write_memoryviewhttps://bugs.ruby-lang.org/issues/17832?journal_id=918082021-05-04T16:15:28Zxtkoba (Tee KOBAYASHI)
<ul></ul><p>For debugging purposes, it would be nice if we could modify the content of view directly from Ruby code without any third-party C extension, although I cannot tell whether <code>IO</code> is suitable for that.</p> Ruby master - Feature #17832: allow IO write to write memoryview object without copying or add IO#write_memoryviewhttps://bugs.ruby-lang.org/issues/17832?journal_id=918362021-05-05T14:16:49Zdsisnero (Dominic Sisneros)dsisnero@gmail.com
<ul></ul><p>This is a separate request <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: ruby extension for memoryview (Open)" href="https://bugs.ruby-lang.org/issues/17851">#17851</a> to allow memoryview extension in ruby - this request is so that IO doesn't require a separate copy<br>
to string when writing a memoryview object</p> Ruby master - Feature #17832: allow IO write to write memoryview object without copying or add IO#write_memoryviewhttps://bugs.ruby-lang.org/issues/17832?journal_id=918552021-05-05T20:33:16Zdsisnero (Dominic Sisneros)dsisnero@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/91855/diff?detail_id=59901">diff</a>)</li></ul> Ruby master - Feature #17832: allow IO write to write memoryview object without copying or add IO#write_memoryviewhttps://bugs.ruby-lang.org/issues/17832?journal_id=918762021-05-06T21:10:33Zkou (Kouhei Sutou)kou@cozmixng.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul><p>We can implement this by adding <code>Fiddle::MemoryView#to_s</code> with <code>rb_str_new_static()</code>.</p>
<p>Could you file this to <a href="https://github.com/ruby/fiddle/" class="external">https://github.com/ruby/fiddle/</a> ?</p>