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
8422 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
unsafe impl Send for ArrowSchema {}
19
20
/// ABI-compatible struct for [`ArrowArray`](https://arrow.apache.org/docs/format/CDataInterface.html#structure-definitions)
21
#[repr(C)]
22
#[derive(Debug)]
23
pub struct ArrowArray {
24
pub(super) length: i64,
25
pub(super) null_count: i64,
26
pub(super) offset: i64,
27
pub(super) n_buffers: i64,
28
pub(super) n_children: i64,
29
pub(super) buffers: *mut *const ::std::os::raw::c_void,
30
pub(super) children: *mut *mut ArrowArray,
31
pub(super) dictionary: *mut ArrowArray,
32
pub(super) release: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ArrowArray)>,
33
pub(super) private_data: *mut ::std::os::raw::c_void,
34
}
35
36
/// ABI-compatible struct for [`ArrowArrayStream`](https://arrow.apache.org/docs/format/CStreamInterface.html).
37
#[repr(C)]
38
#[derive(Debug)]
39
pub struct ArrowArrayStream {
40
pub(super) get_schema: ::std::option::Option<
41
unsafe extern "C" fn(
42
arg1: *mut ArrowArrayStream,
43
out: *mut ArrowSchema,
44
) -> ::std::os::raw::c_int,
45
>,
46
pub(super) get_next: ::std::option::Option<
47
unsafe extern "C" fn(
48
arg1: *mut ArrowArrayStream,
49
out: *mut ArrowArray,
50
) -> ::std::os::raw::c_int,
51
>,
52
pub(super) get_last_error: ::std::option::Option<
53
unsafe extern "C" fn(arg1: *mut ArrowArrayStream) -> *const ::std::os::raw::c_char,
54
>,
55
pub(super) release: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ArrowArrayStream)>,
56
pub(super) private_data: *mut ::std::os::raw::c_void,
57
}
58
59