arrow_array::ffi

Function export_array_into_raw

Source
pub unsafe fn export_array_into_raw(
    src: ArrayRef,
    out_array: *mut FFI_ArrowArray,
    out_schema: *mut FFI_ArrowSchema,
) -> Result<(), ArrowError>
๐Ÿ‘ŽDeprecated since 52.0.0: Use FFI_ArrowArray::new and FFI_ArrowSchema::try_from
Expand description

Exports an array to raw pointers of the C Data Interface provided by the consumer.

ยงSafety

Assumes that these pointers represent valid C Data Interfaces, both in memory representation and lifetime via the release mechanism.

This function copies the content of two FFI structs arrow_data::ffi::FFI_ArrowArray and arrow_schema::ffi::FFI_ArrowSchema in the array to the location pointed by the raw pointers. Usually the raw pointers are provided by the array data consumer.