Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-arrow/src/ffi/generated.rs
6939 views
1
/* automatically generated by rust-bindgen 0.59.2 */
2
3
/// ABI-compatible struct for [`ArrowSchema`](https://arrow.apache.org/docs/format/CDataInterface.html#structure-definitions)
4
#[repr(C)]
5
#[derive(Debug)]
6
pub struct ArrowSchema {
7
pub(super) format: *const ::std::os::raw::c_char,
8
pub(super) name: *const ::std::os::raw::c_char,
9
pub(super) metadata: *const ::std::os::raw::c_char,
10
pub(super) flags: i64,
11
pub(super) n_children: i64,
12
pub(super) children: *mut *mut ArrowSchema,
13
pub(super) dictionary: *mut ArrowSchema,
14
pub(super) release: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ArrowSchema)>,
15
pub(super) private_data: *mut ::std::os::raw::c_void,
16
}
17
18
/// ABI-compatible struct for [`ArrowArray`](https://arrow.apache.org/docs/format/CDataInterface.html#structure-definitions)
19
#[repr(C)]
20
#[derive(Debug)]
21
pub struct ArrowArray {
22
pub(super) length: i64,
23
pub(super) null_count: i64,
24
pub(super) offset: i64,
25
pub(super) n_buffers: i64,
26
pub(super) n_children: i64,
27
pub(super) buffers: *mut *const ::std::os::raw::c_void,
28
pub(super) children: *mut *mut ArrowArray,
29
pub(super) dictionary: *mut ArrowArray,
30
pub(super) release: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ArrowArray)>,
31
pub(super) private_data: *mut ::std::os::raw::c_void,
32
}
33
34
/// ABI-compatible struct for [`ArrowArrayStream`](https://arrow.apache.org/docs/format/CStreamInterface.html).
35
#[repr(C)]
36
#[derive(Debug)]
37
pub struct ArrowArrayStream {
38
pub(super) get_schema: ::std::option::Option<
39
unsafe extern "C" fn(
40
arg1: *mut ArrowArrayStream,
41
out: *mut ArrowSchema,
42
) -> ::std::os::raw::c_int,
43
>,
44
pub(super) get_next: ::std::option::Option<
45
unsafe extern "C" fn(
46
arg1: *mut ArrowArrayStream,
47
out: *mut ArrowArray,
48
) -> ::std::os::raw::c_int,
49
>,
50
pub(super) get_last_error: ::std::option::Option<
51
unsafe extern "C" fn(arg1: *mut ArrowArrayStream) -> *const ::std::os::raw::c_char,
52
>,
53
pub(super) release: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ArrowArrayStream)>,
54
pub(super) private_data: *mut ::std::os::raw::c_void,
55
}
56
57