Issue #17831 has been updated by kou (Kouhei Sutou).

Status changed from Open to Third Party's Issue

Could you file this to https://github.com/ruby/fiddle/ ?

----------------------------------------
Feature #17831: add slice method to Fiddle::MemoryView
https://bugs.ruby-lang.org/issues/17831#change-91877

* Author: dsisnero (Dominic Sisneros)
* Status: Third Party's Issue
* Priority: Normal
----------------------------------------
``` ruby
# Fiddle::MemoryView#slice(start, length)
# Fiddle::MemoryView#slice(range)
mv = Fiddle::MemoryView.new(memory_object)

while mv
  puts mv[0]
  mv = mv.slice(1..-1) # returns a new MemoryView object with the same MemoryView#obj   # that is no copying
end

```

related to #17832 
related to #17851 
related to #17833 








-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>