alamb commented on code in PR #9160:
URL: https://github.com/apache/arrow-rs/pull/9160#discussion_r2687021745
##########
arrow-array/src/array/mod.rs:
##########
@@ -939,6 +939,27 @@ unsafe fn get_offsets<O: ArrowNativeType>(data:
&ArrayData) -> OffsetBuffer<O> {
}
}
+/// Helper function that creates an [`OffsetBuffer`] from a buffer and array
offset/ length
+///
+/// # Safety
+///
+/// - buffer must contain valid arrow offsets ( [`OffsetBuffer`] ) for the
+/// given length and offset.
+unsafe fn get_offsets_from_buffer<O: ArrowNativeType>(
Review Comment:
This is a version of `get_offsets` immediately above here that takes the
Buffers rather than `ArrayData`. Once I have ported all the arrays, I will
remove `get_offsets`
--
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]