Weston Pace created ARROW-18119:
-----------------------------------

             Summary: [C++] Utility method to ensure an array object meetings 
an alignment requirement
                 Key: ARROW-18119
                 URL: https://issues.apache.org/jira/browse/ARROW-18119
             Project: Apache Arrow
          Issue Type: Sub-task
          Components: C++
            Reporter: Weston Pace


This would look something like:

EnsureAligned(Buffer|Array|ChunkedArray|RecordBatch|Table, int 
minimum_alignment, MemoryPool* memory_pool);

It would fail if MemoryPool's alignment < minimum_alignment
It would iterate through each buffer of the object, if the object is not 
aligned properly, it would reallocate and copy the buffer (using memory_pool)

It would return a new object where every buffer is guaranteed to meet the 
alignment requirements.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to