felipecrv commented on PR #41477:
URL: https://github.com/apache/arrow/pull/41477#issuecomment-2090808588

   When I wrote
   
   > Perhaps copying a slice of an address() should be a MemoryManager 
operation.
   
   I was wishing for an API that *didn't always* have to allocate `unique_ptr` 
or `shared_ptrs` of anything to copy 4 or 8 bytes from a CPU/non-CPU Buffer to 
a regular CPU memory pointer. It would lower to a `memcpy` if both source and 
destination are CPU memory managers.
   
   A combinatorial explosion of functions to support on every `MemoryManager` 
is not desirable.
   
   ```
   CopyBufferSliceFrom
   CopyBufferSliceTo
   CopyNonOwnedSliceFrom
   CopyNonOwnedSliceTo
   ViewBufferSliceFrom
   ViewBufferSliceTo
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to