add slice method to Fiddle::MemoryView
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 195
- Forks
- 53
- Avg merge
- 23h 57m
- Merged PRs (30d)
- 1
Description
# 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation file or test is named in the issue. Start by locating Fiddle::MemoryView and its existing indexing and object-retention behavior, then inspect related tests if present. Done means supporting slice(start, length) and slice(range), returning a new MemoryView that shares the same underlying object without copying.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100