Issue #17831 has been reported by dsisnero (Dominic Sisneros).

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

* Author: dsisnero (Dominic Sisneros)
* Status: Open
* Priority: Normal
----------------------------------------

mv = Fiddle::MemoryView.new(memory_object)

Fiddle::MemoryView#slice(start, length)
Fiddle::MemoryView#slice(range)

returns a new MemoryView object with the same MemoryView#obj   # that is no copying

mv = Fiddle::MemoryView.new(memoryobj)

while mv
  puts mv[0]
  mv = mv.slice(1..-1)
end






-- 
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>