Skip to content

Add slicing to BufferHandle#7071

Draft
gatesn wants to merge 1 commit intodevelopfrom
ngates/lazy-buffers/slicing
Draft

Add slicing to BufferHandle#7071
gatesn wants to merge 1 commit intodevelopfrom
ngates/lazy-buffers/slicing

Conversation

@gatesn
Copy link
Contributor

@gatesn gatesn commented Mar 19, 2026

Summary

Closes: #000

Testing

Signed-off-by: Nicholas Gates <nick@nickgates.com>
Copy link
Contributor Author

gatesn commented Mar 19, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment on lines +93 to +99
/// Unlike [`slice`](DeviceBuffer::slice), this method allocates new memory and copies the
/// selected ranges into a contiguous buffer.
///
/// # Errors
///
/// Returns an error if the device cannot allocate memory or copy the data.
fn filter(&self, ranges: &[Range<usize>]) -> VortexResult<Arc<dyn DeviceBuffer>>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in bytes? This translation might be hard?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need a few ways of slicing? Not sure...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants