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