pub fn as_offset_buffer<T: NativePType + ArrowNativeType>( array: PrimitiveArray, ) -> OffsetBuffer<T>