/* automatically generated by rust-bindgen 0.71.1 */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage }
}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
fn extract_bit(byte: u8, index: usize) -> bool {
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
byte & mask == mask
}
#[inline]
pub fn get_bit(&self, index: usize) -> bool {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = self.storage.as_ref()[byte_index];
Self::extract_bit(byte, index)
}
#[inline]
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
Self::extract_bit(byte, index)
}
#[inline]
fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
let bit_index = if cfg!(target_endian = "big") {
7 - (index % 8)
} else {
index % 8
};
let mask = 1 << bit_index;
if val {
byte | mask
} else {
byte & !mask
}
}
#[inline]
pub fn set_bit(&mut self, index: usize, val: bool) {
debug_assert!(index / 8 < self.storage.as_ref().len());
let byte_index = index / 8;
let byte = &mut self.storage.as_mut()[byte_index];
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
debug_assert!(index / 8 < core::mem::size_of::<Storage>());
let byte_index = index / 8;
let byte =
(core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
*byte = Self::change_bit(*byte, index, val);
}
#[inline]
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
let mut val = 0;
for i in 0..(bit_width as usize) {
if self.get_bit(i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
let mut val = 0;
for i in 0..(bit_width as usize) {
if Self::raw_get_bit(this, i + bit_offset) {
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
val |= 1 << index;
}
}
val
}
#[inline]
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
self.set_bit(index + bit_offset, val_bit_is_set);
}
}
#[inline]
pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
debug_assert!(bit_width <= 64);
debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
for i in 0..(bit_width as usize) {
let mask = 1 << i;
let val_bit_is_set = val & mask == mask;
let index = if cfg!(target_endian = "big") {
bit_width as usize - 1 - i
} else {
i
};
Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
}
}
}
pub const __bool_true_false_are_defined: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __WORDSIZE: u32 = 64;
pub const __has_safe_buffers: u32 = 1;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
pub const __DARWIN_NO_LONG_LONG: u32 = 0;
pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
pub const __has_ptrcheck: u32 = 0;
pub const USE_CLANG_TYPES: u32 = 0;
pub const __PTHREAD_SIZE__: u32 = 8176;
pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
pub const __PTHREAD_COND_SIZE__: u32 = 40;
pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const UINTPTR_MAX: i32 = -1;
pub const SIZE_MAX: i32 = -1;
pub const RSIZE_MAX: i32 = -1;
pub const WINT_MIN: i32 = -2147483648;
pub const WINT_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const __API_TO_BE_DEPRECATED: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
pub const __MAC_10_0: u32 = 1000;
pub const __MAC_10_1: u32 = 1010;
pub const __MAC_10_2: u32 = 1020;
pub const __MAC_10_3: u32 = 1030;
pub const __MAC_10_4: u32 = 1040;
pub const __MAC_10_5: u32 = 1050;
pub const __MAC_10_6: u32 = 1060;
pub const __MAC_10_7: u32 = 1070;
pub const __MAC_10_8: u32 = 1080;
pub const __MAC_10_9: u32 = 1090;
pub const __MAC_10_10: u32 = 101000;
pub const __MAC_10_10_2: u32 = 101002;
pub const __MAC_10_10_3: u32 = 101003;
pub const __MAC_10_11: u32 = 101100;
pub const __MAC_10_11_2: u32 = 101102;
pub const __MAC_10_11_3: u32 = 101103;
pub const __MAC_10_11_4: u32 = 101104;
pub const __MAC_10_12: u32 = 101200;
pub const __MAC_10_12_1: u32 = 101201;
pub const __MAC_10_12_2: u32 = 101202;
pub const __MAC_10_12_4: u32 = 101204;
pub const __MAC_10_13: u32 = 101300;
pub const __MAC_10_13_1: u32 = 101301;
pub const __MAC_10_13_2: u32 = 101302;
pub const __MAC_10_13_4: u32 = 101304;
pub const __MAC_10_14: u32 = 101400;
pub const __MAC_10_14_1: u32 = 101401;
pub const __MAC_10_14_4: u32 = 101404;
pub const __MAC_10_14_5: u32 = 101405;
pub const __MAC_10_14_6: u32 = 101406;
pub const __MAC_10_15: u32 = 101500;
pub const __MAC_10_15_1: u32 = 101501;
pub const __MAC_10_15_4: u32 = 101504;
pub const __MAC_10_16: u32 = 101600;
pub const __MAC_11_0: u32 = 110000;
pub const __MAC_11_1: u32 = 110100;
pub const __MAC_11_3: u32 = 110300;
pub const __MAC_11_4: u32 = 110400;
pub const __MAC_11_5: u32 = 110500;
pub const __MAC_11_6: u32 = 110600;
pub const __MAC_12_0: u32 = 120000;
pub const __MAC_12_1: u32 = 120100;
pub const __MAC_12_2: u32 = 120200;
pub const __MAC_12_3: u32 = 120300;
pub const __MAC_12_4: u32 = 120400;
pub const __MAC_12_5: u32 = 120500;
pub const __MAC_12_6: u32 = 120600;
pub const __MAC_12_7: u32 = 120700;
pub const __MAC_13_0: u32 = 130000;
pub const __MAC_13_1: u32 = 130100;
pub const __MAC_13_2: u32 = 130200;
pub const __MAC_13_3: u32 = 130300;
pub const __MAC_13_4: u32 = 130400;
pub const __MAC_13_5: u32 = 130500;
pub const __MAC_13_6: u32 = 130600;
pub const __MAC_14_0: u32 = 140000;
pub const __MAC_14_1: u32 = 140100;
pub const __MAC_14_2: u32 = 140200;
pub const __MAC_14_3: u32 = 140300;
pub const __MAC_14_4: u32 = 140400;
pub const __MAC_14_5: u32 = 140500;
pub const __MAC_15_0: u32 = 150000;
pub const __MAC_15_1: u32 = 150100;
pub const __MAC_15_2: u32 = 150200;
pub const __IPHONE_2_0: u32 = 20000;
pub const __IPHONE_2_1: u32 = 20100;
pub const __IPHONE_2_2: u32 = 20200;
pub const __IPHONE_3_0: u32 = 30000;
pub const __IPHONE_3_1: u32 = 30100;
pub const __IPHONE_3_2: u32 = 30200;
pub const __IPHONE_4_0: u32 = 40000;
pub const __IPHONE_4_1: u32 = 40100;
pub const __IPHONE_4_2: u32 = 40200;
pub const __IPHONE_4_3: u32 = 40300;
pub const __IPHONE_5_0: u32 = 50000;
pub const __IPHONE_5_1: u32 = 50100;
pub const __IPHONE_6_0: u32 = 60000;
pub const __IPHONE_6_1: u32 = 60100;
pub const __IPHONE_7_0: u32 = 70000;
pub const __IPHONE_7_1: u32 = 70100;
pub const __IPHONE_8_0: u32 = 80000;
pub const __IPHONE_8_1: u32 = 80100;
pub const __IPHONE_8_2: u32 = 80200;
pub const __IPHONE_8_3: u32 = 80300;
pub const __IPHONE_8_4: u32 = 80400;
pub const __IPHONE_9_0: u32 = 90000;
pub const __IPHONE_9_1: u32 = 90100;
pub const __IPHONE_9_2: u32 = 90200;
pub const __IPHONE_9_3: u32 = 90300;
pub const __IPHONE_10_0: u32 = 100000;
pub const __IPHONE_10_1: u32 = 100100;
pub const __IPHONE_10_2: u32 = 100200;
pub const __IPHONE_10_3: u32 = 100300;
pub const __IPHONE_11_0: u32 = 110000;
pub const __IPHONE_11_1: u32 = 110100;
pub const __IPHONE_11_2: u32 = 110200;
pub const __IPHONE_11_3: u32 = 110300;
pub const __IPHONE_11_4: u32 = 110400;
pub const __IPHONE_12_0: u32 = 120000;
pub const __IPHONE_12_1: u32 = 120100;
pub const __IPHONE_12_2: u32 = 120200;
pub const __IPHONE_12_3: u32 = 120300;
pub const __IPHONE_12_4: u32 = 120400;
pub const __IPHONE_13_0: u32 = 130000;
pub const __IPHONE_13_1: u32 = 130100;
pub const __IPHONE_13_2: u32 = 130200;
pub const __IPHONE_13_3: u32 = 130300;
pub const __IPHONE_13_4: u32 = 130400;
pub const __IPHONE_13_5: u32 = 130500;
pub const __IPHONE_13_6: u32 = 130600;
pub const __IPHONE_13_7: u32 = 130700;
pub const __IPHONE_14_0: u32 = 140000;
pub const __IPHONE_14_1: u32 = 140100;
pub const __IPHONE_14_2: u32 = 140200;
pub const __IPHONE_14_3: u32 = 140300;
pub const __IPHONE_14_5: u32 = 140500;
pub const __IPHONE_14_4: u32 = 140400;
pub const __IPHONE_14_6: u32 = 140600;
pub const __IPHONE_14_7: u32 = 140700;
pub const __IPHONE_14_8: u32 = 140800;
pub const __IPHONE_15_0: u32 = 150000;
pub const __IPHONE_15_1: u32 = 150100;
pub const __IPHONE_15_2: u32 = 150200;
pub const __IPHONE_15_3: u32 = 150300;
pub const __IPHONE_15_4: u32 = 150400;
pub const __IPHONE_15_5: u32 = 150500;
pub const __IPHONE_15_6: u32 = 150600;
pub const __IPHONE_15_7: u32 = 150700;
pub const __IPHONE_15_8: u32 = 150800;
pub const __IPHONE_16_0: u32 = 160000;
pub const __IPHONE_16_1: u32 = 160100;
pub const __IPHONE_16_2: u32 = 160200;
pub const __IPHONE_16_3: u32 = 160300;
pub const __IPHONE_16_4: u32 = 160400;
pub const __IPHONE_16_5: u32 = 160500;
pub const __IPHONE_16_6: u32 = 160600;
pub const __IPHONE_16_7: u32 = 160700;
pub const __IPHONE_17_0: u32 = 170000;
pub const __IPHONE_17_1: u32 = 170100;
pub const __IPHONE_17_2: u32 = 170200;
pub const __IPHONE_17_3: u32 = 170300;
pub const __IPHONE_17_4: u32 = 170400;
pub const __IPHONE_17_5: u32 = 170500;
pub const __IPHONE_18_0: u32 = 180000;
pub const __IPHONE_18_1: u32 = 180100;
pub const __IPHONE_18_2: u32 = 180200;
pub const __WATCHOS_1_0: u32 = 10000;
pub const __WATCHOS_2_0: u32 = 20000;
pub const __WATCHOS_2_1: u32 = 20100;
pub const __WATCHOS_2_2: u32 = 20200;
pub const __WATCHOS_3_0: u32 = 30000;
pub const __WATCHOS_3_1: u32 = 30100;
pub const __WATCHOS_3_1_1: u32 = 30101;
pub const __WATCHOS_3_2: u32 = 30200;
pub const __WATCHOS_4_0: u32 = 40000;
pub const __WATCHOS_4_1: u32 = 40100;
pub const __WATCHOS_4_2: u32 = 40200;
pub const __WATCHOS_4_3: u32 = 40300;
pub const __WATCHOS_5_0: u32 = 50000;
pub const __WATCHOS_5_1: u32 = 50100;
pub const __WATCHOS_5_2: u32 = 50200;
pub const __WATCHOS_5_3: u32 = 50300;
pub const __WATCHOS_6_0: u32 = 60000;
pub const __WATCHOS_6_1: u32 = 60100;
pub const __WATCHOS_6_2: u32 = 60200;
pub const __WATCHOS_7_0: u32 = 70000;
pub const __WATCHOS_7_1: u32 = 70100;
pub const __WATCHOS_7_2: u32 = 70200;
pub const __WATCHOS_7_3: u32 = 70300;
pub const __WATCHOS_7_4: u32 = 70400;
pub const __WATCHOS_7_5: u32 = 70500;
pub const __WATCHOS_7_6: u32 = 70600;
pub const __WATCHOS_8_0: u32 = 80000;
pub const __WATCHOS_8_1: u32 = 80100;
pub const __WATCHOS_8_3: u32 = 80300;
pub const __WATCHOS_8_4: u32 = 80400;
pub const __WATCHOS_8_5: u32 = 80500;
pub const __WATCHOS_8_6: u32 = 80600;
pub const __WATCHOS_8_7: u32 = 80700;
pub const __WATCHOS_8_8: u32 = 80800;
pub const __WATCHOS_9_0: u32 = 90000;
pub const __WATCHOS_9_1: u32 = 90100;
pub const __WATCHOS_9_2: u32 = 90200;
pub const __WATCHOS_9_3: u32 = 90300;
pub const __WATCHOS_9_4: u32 = 90400;
pub const __WATCHOS_9_5: u32 = 90500;
pub const __WATCHOS_9_6: u32 = 90600;
pub const __WATCHOS_10_0: u32 = 100000;
pub const __WATCHOS_10_1: u32 = 100100;
pub const __WATCHOS_10_2: u32 = 100200;
pub const __WATCHOS_10_3: u32 = 100300;
pub const __WATCHOS_10_4: u32 = 100400;
pub const __WATCHOS_10_5: u32 = 100500;
pub const __WATCHOS_11_0: u32 = 110000;
pub const __WATCHOS_11_1: u32 = 110100;
pub const __WATCHOS_11_2: u32 = 110200;
pub const __TVOS_9_0: u32 = 90000;
pub const __TVOS_9_1: u32 = 90100;
pub const __TVOS_9_2: u32 = 90200;
pub const __TVOS_10_0: u32 = 100000;
pub const __TVOS_10_0_1: u32 = 100001;
pub const __TVOS_10_1: u32 = 100100;
pub const __TVOS_10_2: u32 = 100200;
pub const __TVOS_11_0: u32 = 110000;
pub const __TVOS_11_1: u32 = 110100;
pub const __TVOS_11_2: u32 = 110200;
pub const __TVOS_11_3: u32 = 110300;
pub const __TVOS_11_4: u32 = 110400;
pub const __TVOS_12_0: u32 = 120000;
pub const __TVOS_12_1: u32 = 120100;
pub const __TVOS_12_2: u32 = 120200;
pub const __TVOS_12_3: u32 = 120300;
pub const __TVOS_12_4: u32 = 120400;
pub const __TVOS_13_0: u32 = 130000;
pub const __TVOS_13_2: u32 = 130200;
pub const __TVOS_13_3: u32 = 130300;
pub const __TVOS_13_4: u32 = 130400;
pub const __TVOS_14_0: u32 = 140000;
pub const __TVOS_14_1: u32 = 140100;
pub const __TVOS_14_2: u32 = 140200;
pub const __TVOS_14_3: u32 = 140300;
pub const __TVOS_14_5: u32 = 140500;
pub const __TVOS_14_6: u32 = 140600;
pub const __TVOS_14_7: u32 = 140700;
pub const __TVOS_15_0: u32 = 150000;
pub const __TVOS_15_1: u32 = 150100;
pub const __TVOS_15_2: u32 = 150200;
pub const __TVOS_15_3: u32 = 150300;
pub const __TVOS_15_4: u32 = 150400;
pub const __TVOS_15_5: u32 = 150500;
pub const __TVOS_15_6: u32 = 150600;
pub const __TVOS_16_0: u32 = 160000;
pub const __TVOS_16_1: u32 = 160100;
pub const __TVOS_16_2: u32 = 160200;
pub const __TVOS_16_3: u32 = 160300;
pub const __TVOS_16_4: u32 = 160400;
pub const __TVOS_16_5: u32 = 160500;
pub const __TVOS_16_6: u32 = 160600;
pub const __TVOS_17_0: u32 = 170000;
pub const __TVOS_17_1: u32 = 170100;
pub const __TVOS_17_2: u32 = 170200;
pub const __TVOS_17_3: u32 = 170300;
pub const __TVOS_17_4: u32 = 170400;
pub const __TVOS_17_5: u32 = 170500;
pub const __TVOS_18_0: u32 = 180000;
pub const __TVOS_18_1: u32 = 180100;
pub const __TVOS_18_2: u32 = 180200;
pub const __BRIDGEOS_2_0: u32 = 20000;
pub const __BRIDGEOS_3_0: u32 = 30000;
pub const __BRIDGEOS_3_1: u32 = 30100;
pub const __BRIDGEOS_3_4: u32 = 30400;
pub const __BRIDGEOS_4_0: u32 = 40000;
pub const __BRIDGEOS_4_1: u32 = 40100;
pub const __BRIDGEOS_5_0: u32 = 50000;
pub const __BRIDGEOS_5_1: u32 = 50100;
pub const __BRIDGEOS_5_3: u32 = 50300;
pub const __BRIDGEOS_6_0: u32 = 60000;
pub const __BRIDGEOS_6_2: u32 = 60200;
pub const __BRIDGEOS_6_4: u32 = 60400;
pub const __BRIDGEOS_6_5: u32 = 60500;
pub const __BRIDGEOS_6_6: u32 = 60600;
pub const __BRIDGEOS_7_0: u32 = 70000;
pub const __BRIDGEOS_7_1: u32 = 70100;
pub const __BRIDGEOS_7_2: u32 = 70200;
pub const __BRIDGEOS_7_3: u32 = 70300;
pub const __BRIDGEOS_7_4: u32 = 70400;
pub const __BRIDGEOS_7_6: u32 = 70600;
pub const __BRIDGEOS_8_0: u32 = 80000;
pub const __BRIDGEOS_8_1: u32 = 80100;
pub const __BRIDGEOS_8_2: u32 = 80200;
pub const __BRIDGEOS_8_3: u32 = 80300;
pub const __BRIDGEOS_8_4: u32 = 80400;
pub const __BRIDGEOS_8_5: u32 = 80500;
pub const __BRIDGEOS_9_0: u32 = 90000;
pub const __BRIDGEOS_9_1: u32 = 90100;
pub const __BRIDGEOS_9_2: u32 = 90200;
pub const __DRIVERKIT_19_0: u32 = 190000;
pub const __DRIVERKIT_20_0: u32 = 200000;
pub const __DRIVERKIT_21_0: u32 = 210000;
pub const __DRIVERKIT_22_0: u32 = 220000;
pub const __DRIVERKIT_22_4: u32 = 220400;
pub const __DRIVERKIT_22_5: u32 = 220500;
pub const __DRIVERKIT_22_6: u32 = 220600;
pub const __DRIVERKIT_23_0: u32 = 230000;
pub const __DRIVERKIT_23_1: u32 = 230100;
pub const __DRIVERKIT_23_2: u32 = 230200;
pub const __DRIVERKIT_23_3: u32 = 230300;
pub const __DRIVERKIT_23_4: u32 = 230400;
pub const __DRIVERKIT_23_5: u32 = 230500;
pub const __DRIVERKIT_24_0: u32 = 240000;
pub const __DRIVERKIT_24_1: u32 = 240100;
pub const __DRIVERKIT_24_2: u32 = 240200;
pub const __VISIONOS_1_0: u32 = 10000;
pub const __VISIONOS_1_1: u32 = 10100;
pub const __VISIONOS_1_2: u32 = 10200;
pub const __VISIONOS_2_0: u32 = 20000;
pub const __VISIONOS_2_1: u32 = 20100;
pub const __VISIONOS_2_2: u32 = 20200;
pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405;
pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504;
pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
pub const MAC_OS_VERSION_11_0: u32 = 110000;
pub const MAC_OS_VERSION_11_1: u32 = 110100;
pub const MAC_OS_VERSION_11_3: u32 = 110300;
pub const MAC_OS_VERSION_11_4: u32 = 110400;
pub const MAC_OS_VERSION_11_5: u32 = 110500;
pub const MAC_OS_VERSION_11_6: u32 = 110600;
pub const MAC_OS_VERSION_12_0: u32 = 120000;
pub const MAC_OS_VERSION_12_1: u32 = 120100;
pub const MAC_OS_VERSION_12_2: u32 = 120200;
pub const MAC_OS_VERSION_12_3: u32 = 120300;
pub const MAC_OS_VERSION_12_4: u32 = 120400;
pub const MAC_OS_VERSION_12_5: u32 = 120500;
pub const MAC_OS_VERSION_12_6: u32 = 120600;
pub const MAC_OS_VERSION_12_7: u32 = 120700;
pub const MAC_OS_VERSION_13_0: u32 = 130000;
pub const MAC_OS_VERSION_13_1: u32 = 130100;
pub const MAC_OS_VERSION_13_2: u32 = 130200;
pub const MAC_OS_VERSION_13_3: u32 = 130300;
pub const MAC_OS_VERSION_13_4: u32 = 130400;
pub const MAC_OS_VERSION_13_5: u32 = 130500;
pub const MAC_OS_VERSION_13_6: u32 = 130600;
pub const MAC_OS_VERSION_14_0: u32 = 140000;
pub const MAC_OS_VERSION_14_1: u32 = 140100;
pub const MAC_OS_VERSION_14_2: u32 = 140200;
pub const MAC_OS_VERSION_14_3: u32 = 140300;
pub const MAC_OS_VERSION_14_4: u32 = 140400;
pub const MAC_OS_VERSION_14_5: u32 = 140500;
pub const MAC_OS_VERSION_15_0: u32 = 150000;
pub const MAC_OS_VERSION_15_1: u32 = 150100;
pub const MAC_OS_VERSION_15_2: u32 = 150200;
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 150200;
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
pub const _FORTIFY_SOURCE: u32 = 2;
pub const __DARWIN_NSIG: u32 = 32;
pub const NSIG: u32 = 32;
pub const _ARM_SIGNAL_: u32 = 1;
pub const SIGHUP: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGQUIT: u32 = 3;
pub const SIGILL: u32 = 4;
pub const SIGTRAP: u32 = 5;
pub const SIGABRT: u32 = 6;
pub const SIGIOT: u32 = 6;
pub const SIGEMT: u32 = 7;
pub const SIGFPE: u32 = 8;
pub const SIGKILL: u32 = 9;
pub const SIGBUS: u32 = 10;
pub const SIGSEGV: u32 = 11;
pub const SIGSYS: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGTERM: u32 = 15;
pub const SIGURG: u32 = 16;
pub const SIGSTOP: u32 = 17;
pub const SIGTSTP: u32 = 18;
pub const SIGCONT: u32 = 19;
pub const SIGCHLD: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGIO: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGWINCH: u32 = 28;
pub const SIGINFO: u32 = 29;
pub const SIGUSR1: u32 = 30;
pub const SIGUSR2: u32 = 31;
pub const __DARWIN_OPAQUE_ARM_THREAD_STATE64: u32 = 0;
pub const USE_CLANG_STDDEF: u32 = 0;
pub const SIGEV_NONE: u32 = 0;
pub const SIGEV_SIGNAL: u32 = 1;
pub const SIGEV_THREAD: u32 = 3;
pub const ILL_NOOP: u32 = 0;
pub const ILL_ILLOPC: u32 = 1;
pub const ILL_ILLTRP: u32 = 2;
pub const ILL_PRVOPC: u32 = 3;
pub const ILL_ILLOPN: u32 = 4;
pub const ILL_ILLADR: u32 = 5;
pub const ILL_PRVREG: u32 = 6;
pub const ILL_COPROC: u32 = 7;
pub const ILL_BADSTK: u32 = 8;
pub const FPE_NOOP: u32 = 0;
pub const FPE_FLTDIV: u32 = 1;
pub const FPE_FLTOVF: u32 = 2;
pub const FPE_FLTUND: u32 = 3;
pub const FPE_FLTRES: u32 = 4;
pub const FPE_FLTINV: u32 = 5;
pub const FPE_FLTSUB: u32 = 6;
pub const FPE_INTDIV: u32 = 7;
pub const FPE_INTOVF: u32 = 8;
pub const SEGV_NOOP: u32 = 0;
pub const SEGV_MAPERR: u32 = 1;
pub const SEGV_ACCERR: u32 = 2;
pub const BUS_NOOP: u32 = 0;
pub const BUS_ADRALN: u32 = 1;
pub const BUS_ADRERR: u32 = 2;
pub const BUS_OBJERR: u32 = 3;
pub const TRAP_BRKPT: u32 = 1;
pub const TRAP_TRACE: u32 = 2;
pub const CLD_NOOP: u32 = 0;
pub const CLD_EXITED: u32 = 1;
pub const CLD_KILLED: u32 = 2;
pub const CLD_DUMPED: u32 = 3;
pub const CLD_TRAPPED: u32 = 4;
pub const CLD_STOPPED: u32 = 5;
pub const CLD_CONTINUED: u32 = 6;
pub const POLL_IN: u32 = 1;
pub const POLL_OUT: u32 = 2;
pub const POLL_MSG: u32 = 3;
pub const POLL_ERR: u32 = 4;
pub const POLL_PRI: u32 = 5;
pub const POLL_HUP: u32 = 6;
pub const SA_ONSTACK: u32 = 1;
pub const SA_RESTART: u32 = 2;
pub const SA_RESETHAND: u32 = 4;
pub const SA_NOCLDSTOP: u32 = 8;
pub const SA_NODEFER: u32 = 16;
pub const SA_NOCLDWAIT: u32 = 32;
pub const SA_SIGINFO: u32 = 64;
pub const SA_USERTRAMP: u32 = 256;
pub const SA_64REGSET: u32 = 512;
pub const SA_USERSPACE_MASK: u32 = 127;
pub const SIG_BLOCK: u32 = 1;
pub const SIG_UNBLOCK: u32 = 2;
pub const SIG_SETMASK: u32 = 3;
pub const SI_USER: u32 = 65537;
pub const SI_QUEUE: u32 = 65538;
pub const SI_TIMER: u32 = 65539;
pub const SI_ASYNCIO: u32 = 65540;
pub const SI_MESGQ: u32 = 65541;
pub const SS_ONSTACK: u32 = 1;
pub const SS_DISABLE: u32 = 4;
pub const MINSIGSTKSZ: u32 = 32768;
pub const SIGSTKSZ: u32 = 131072;
pub const SV_ONSTACK: u32 = 1;
pub const SV_INTERRUPT: u32 = 2;
pub const SV_RESETHAND: u32 = 4;
pub const SV_NODEFER: u32 = 16;
pub const SV_NOCLDSTOP: u32 = 8;
pub const SV_SIGINFO: u32 = 64;
pub const PRIO_PROCESS: u32 = 0;
pub const PRIO_PGRP: u32 = 1;
pub const PRIO_USER: u32 = 2;
pub const PRIO_DARWIN_THREAD: u32 = 3;
pub const PRIO_DARWIN_PROCESS: u32 = 4;
pub const PRIO_MIN: i32 = -20;
pub const PRIO_MAX: u32 = 20;
pub const PRIO_DARWIN_BG: u32 = 4096;
pub const PRIO_DARWIN_NONUI: u32 = 4097;
pub const RUSAGE_SELF: u32 = 0;
pub const RUSAGE_CHILDREN: i32 = -1;
pub const RUSAGE_INFO_V0: u32 = 0;
pub const RUSAGE_INFO_V1: u32 = 1;
pub const RUSAGE_INFO_V2: u32 = 2;
pub const RUSAGE_INFO_V3: u32 = 3;
pub const RUSAGE_INFO_V4: u32 = 4;
pub const RUSAGE_INFO_V5: u32 = 5;
pub const RUSAGE_INFO_V6: u32 = 6;
pub const RUSAGE_INFO_CURRENT: u32 = 6;
pub const RU_PROC_RUNS_RESLIDE: u32 = 1;
pub const RLIMIT_CPU: u32 = 0;
pub const RLIMIT_FSIZE: u32 = 1;
pub const RLIMIT_DATA: u32 = 2;
pub const RLIMIT_STACK: u32 = 3;
pub const RLIMIT_CORE: u32 = 4;
pub const RLIMIT_AS: u32 = 5;
pub const RLIMIT_RSS: u32 = 5;
pub const RLIMIT_MEMLOCK: u32 = 6;
pub const RLIMIT_NPROC: u32 = 7;
pub const RLIMIT_NOFILE: u32 = 8;
pub const RLIM_NLIMITS: u32 = 9;
pub const _RLIMIT_POSIX_FLAG: u32 = 4096;
pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1;
pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2;
pub const RLIMIT_THREAD_CPULIMITS: u32 = 3;
pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4;
pub const WAKEMON_ENABLE: u32 = 1;
pub const WAKEMON_DISABLE: u32 = 2;
pub const WAKEMON_GET_PARAMS: u32 = 4;
pub const WAKEMON_SET_DEFAULTS: u32 = 8;
pub const WAKEMON_MAKE_FATAL: u32 = 16;
pub const CPUMON_MAKE_FATAL: u32 = 4096;
pub const FOOTPRINT_INTERVAL_RESET: u32 = 1;
pub const IOPOL_TYPE_DISK: u32 = 0;
pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2;
pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3;
pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4;
pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5;
pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6;
pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7;
pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8;
pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9;
pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10;
pub const IOPOL_SCOPE_PROCESS: u32 = 0;
pub const IOPOL_SCOPE_THREAD: u32 = 1;
pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2;
pub const IOPOL_DEFAULT: u32 = 0;
pub const IOPOL_IMPORTANT: u32 = 1;
pub const IOPOL_PASSIVE: u32 = 2;
pub const IOPOL_THROTTLE: u32 = 3;
pub const IOPOL_UTILITY: u32 = 4;
pub const IOPOL_STANDARD: u32 = 5;
pub const IOPOL_APPLICATION: u32 = 5;
pub const IOPOL_NORMAL: u32 = 1;
pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0;
pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2;
pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0;
pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1;
pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1;
pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0;
pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WCOREFLAG: u32 = 128;
pub const _WSTOPPED: u32 = 127;
pub const WEXITED: u32 = 4;
pub const WSTOPPED: u32 = 8;
pub const WCONTINUED: u32 = 16;
pub const WNOWAIT: u32 = 32;
pub const WAIT_ANY: i32 = -1;
pub const WAIT_MYPGRP: u32 = 0;
pub const _QUAD_HIGHWORD: u32 = 1;
pub const _QUAD_LOWWORD: u32 = 0;
pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234;
pub const __DARWIN_BIG_ENDIAN: u32 = 4321;
pub const __DARWIN_PDP_ENDIAN: u32 = 3412;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const __DARWIN_BYTE_ORDER: u32 = 1234;
pub const BYTE_ORDER: u32 = 1234;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const RAND_MAX: u32 = 2147483647;
pub const _USE_FORTIFY_LEVEL: u32 = 2;
pub const __HAS_FIXED_CHK_PROTOTYPES: u32 = 1;
pub const ORT_API_VERSION: u32 = 20;
pub type int_least8_t = i8;
pub type int_least16_t = i16;
pub type int_least32_t = i32;
pub type int_least64_t = i64;
pub type uint_least8_t = u8;
pub type uint_least16_t = u16;
pub type uint_least32_t = u32;
pub type uint_least64_t = u64;
pub type int_fast8_t = i8;
pub type int_fast16_t = i16;
pub type int_fast32_t = i32;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u16;
pub type uint_fast32_t = u32;
pub type uint_fast64_t = u64;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __darwin_intptr_t = ::std::os::raw::c_long;
pub type __darwin_natural_t = ::std::os::raw::c_uint;
pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
pub __mbstate8: [::std::os::raw::c_char; 128usize],
pub _mbstateL: ::std::os::raw::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __mbstate_t"][::std::mem::size_of::<__mbstate_t>() - 128usize];
["Alignment of __mbstate_t"][::std::mem::align_of::<__mbstate_t>() - 8usize];
["Offset of field: __mbstate_t::__mbstate8"]
[::std::mem::offset_of!(__mbstate_t, __mbstate8) - 0usize];
["Offset of field: __mbstate_t::_mbstateL"]
[::std::mem::offset_of!(__mbstate_t, _mbstateL) - 0usize];
};
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
pub type __darwin_size_t = ::std::os::raw::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::os::raw::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::os::raw::c_int;
pub type __darwin_clock_t = ::std::os::raw::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::os::raw::c_long;
pub type __darwin_time_t = ::std::os::raw::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __darwin_ino64_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
pub __arg: *mut ::std::os::raw::c_void,
pub __next: *mut __darwin_pthread_handler_rec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_pthread_handler_rec"]
[::std::mem::size_of::<__darwin_pthread_handler_rec>() - 24usize];
["Alignment of __darwin_pthread_handler_rec"]
[::std::mem::align_of::<__darwin_pthread_handler_rec>() - 8usize];
["Offset of field: __darwin_pthread_handler_rec::__routine"]
[::std::mem::offset_of!(__darwin_pthread_handler_rec, __routine) - 0usize];
["Offset of field: __darwin_pthread_handler_rec::__arg"]
[::std::mem::offset_of!(__darwin_pthread_handler_rec, __arg) - 8usize];
["Offset of field: __darwin_pthread_handler_rec::__next"]
[::std::mem::offset_of!(__darwin_pthread_handler_rec, __next) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_attr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_attr_t"][::std::mem::size_of::<_opaque_pthread_attr_t>() - 64usize];
["Alignment of _opaque_pthread_attr_t"]
[::std::mem::align_of::<_opaque_pthread_attr_t>() - 8usize];
["Offset of field: _opaque_pthread_attr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_attr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_attr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_attr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_cond_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 40usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_cond_t"][::std::mem::size_of::<_opaque_pthread_cond_t>() - 48usize];
["Alignment of _opaque_pthread_cond_t"]
[::std::mem::align_of::<_opaque_pthread_cond_t>() - 8usize];
["Offset of field: _opaque_pthread_cond_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_cond_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_cond_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_cond_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_condattr_t"]
[::std::mem::size_of::<_opaque_pthread_condattr_t>() - 16usize];
["Alignment of _opaque_pthread_condattr_t"]
[::std::mem::align_of::<_opaque_pthread_condattr_t>() - 8usize];
["Offset of field: _opaque_pthread_condattr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_condattr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_condattr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_condattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 56usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_mutex_t"][::std::mem::size_of::<_opaque_pthread_mutex_t>() - 64usize];
["Alignment of _opaque_pthread_mutex_t"]
[::std::mem::align_of::<_opaque_pthread_mutex_t>() - 8usize];
["Offset of field: _opaque_pthread_mutex_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_mutex_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_mutex_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_mutex_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_mutexattr_t"]
[::std::mem::size_of::<_opaque_pthread_mutexattr_t>() - 16usize];
["Alignment of _opaque_pthread_mutexattr_t"]
[::std::mem::align_of::<_opaque_pthread_mutexattr_t>() - 8usize];
["Offset of field: _opaque_pthread_mutexattr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_mutexattr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_once_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_once_t"][::std::mem::size_of::<_opaque_pthread_once_t>() - 16usize];
["Alignment of _opaque_pthread_once_t"]
[::std::mem::align_of::<_opaque_pthread_once_t>() - 8usize];
["Offset of field: _opaque_pthread_once_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_once_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_once_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_once_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 192usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_rwlock_t"]
[::std::mem::size_of::<_opaque_pthread_rwlock_t>() - 200usize];
["Alignment of _opaque_pthread_rwlock_t"]
[::std::mem::align_of::<_opaque_pthread_rwlock_t>() - 8usize];
["Offset of field: _opaque_pthread_rwlock_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_rwlock_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_rwlock_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_rwlock_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
pub __sig: ::std::os::raw::c_long,
pub __opaque: [::std::os::raw::c_char; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_rwlockattr_t"]
[::std::mem::size_of::<_opaque_pthread_rwlockattr_t>() - 24usize];
["Alignment of _opaque_pthread_rwlockattr_t"]
[::std::mem::align_of::<_opaque_pthread_rwlockattr_t>() - 8usize];
["Offset of field: _opaque_pthread_rwlockattr_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_rwlockattr_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_t {
pub __sig: ::std::os::raw::c_long,
pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
pub __opaque: [::std::os::raw::c_char; 8176usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of _opaque_pthread_t"][::std::mem::size_of::<_opaque_pthread_t>() - 8192usize];
["Alignment of _opaque_pthread_t"][::std::mem::align_of::<_opaque_pthread_t>() - 8usize];
["Offset of field: _opaque_pthread_t::__sig"]
[::std::mem::offset_of!(_opaque_pthread_t, __sig) - 0usize];
["Offset of field: _opaque_pthread_t::__cleanup_stack"]
[::std::mem::offset_of!(_opaque_pthread_t, __cleanup_stack) - 8usize];
["Offset of field: _opaque_pthread_t::__opaque"]
[::std::mem::offset_of!(_opaque_pthread_t, __opaque) - 16usize];
};
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub type __darwin_nl_item = ::std::os::raw::c_int;
pub type __darwin_wctrans_t = ::std::os::raw::c_int;
pub type __darwin_wctype_t = __uint32_t;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum idtype_t {
P_ALL = 0,
P_PID = 1,
P_PGID = 2,
}
pub type pid_t = __darwin_pid_t;
pub type id_t = __darwin_id_t;
pub type sig_atomic_t = ::std::os::raw::c_int;
pub type u_int8_t = ::std::os::raw::c_uchar;
pub type u_int16_t = ::std::os::raw::c_ushort;
pub type u_int32_t = ::std::os::raw::c_uint;
pub type u_int64_t = ::std::os::raw::c_ulonglong;
pub type register_t = i64;
pub type user_addr_t = u_int64_t;
pub type user_size_t = u_int64_t;
pub type user_ssize_t = i64;
pub type user_long_t = i64;
pub type user_ulong_t = u_int64_t;
pub type user_time_t = i64;
pub type user_off_t = i64;
pub type syscall_arg_t = u_int64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_exception_state {
pub __exception: __uint32_t,
pub __fsr: __uint32_t,
pub __far: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_exception_state"]
[::std::mem::size_of::<__darwin_arm_exception_state>() - 12usize];
["Alignment of __darwin_arm_exception_state"]
[::std::mem::align_of::<__darwin_arm_exception_state>() - 4usize];
["Offset of field: __darwin_arm_exception_state::__exception"]
[::std::mem::offset_of!(__darwin_arm_exception_state, __exception) - 0usize];
["Offset of field: __darwin_arm_exception_state::__fsr"]
[::std::mem::offset_of!(__darwin_arm_exception_state, __fsr) - 4usize];
["Offset of field: __darwin_arm_exception_state::__far"]
[::std::mem::offset_of!(__darwin_arm_exception_state, __far) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_exception_state64 {
pub __far: __uint64_t,
pub __esr: __uint32_t,
pub __exception: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_exception_state64"]
[::std::mem::size_of::<__darwin_arm_exception_state64>() - 16usize];
["Alignment of __darwin_arm_exception_state64"]
[::std::mem::align_of::<__darwin_arm_exception_state64>() - 8usize];
["Offset of field: __darwin_arm_exception_state64::__far"]
[::std::mem::offset_of!(__darwin_arm_exception_state64, __far) - 0usize];
["Offset of field: __darwin_arm_exception_state64::__esr"]
[::std::mem::offset_of!(__darwin_arm_exception_state64, __esr) - 8usize];
["Offset of field: __darwin_arm_exception_state64::__exception"]
[::std::mem::offset_of!(__darwin_arm_exception_state64, __exception) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_exception_state64_v2 {
pub __far: __uint64_t,
pub __esr: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_exception_state64_v2"]
[::std::mem::size_of::<__darwin_arm_exception_state64_v2>() - 16usize];
["Alignment of __darwin_arm_exception_state64_v2"]
[::std::mem::align_of::<__darwin_arm_exception_state64_v2>() - 8usize];
["Offset of field: __darwin_arm_exception_state64_v2::__far"]
[::std::mem::offset_of!(__darwin_arm_exception_state64_v2, __far) - 0usize];
["Offset of field: __darwin_arm_exception_state64_v2::__esr"]
[::std::mem::offset_of!(__darwin_arm_exception_state64_v2, __esr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_thread_state {
pub __r: [__uint32_t; 13usize],
pub __sp: __uint32_t,
pub __lr: __uint32_t,
pub __pc: __uint32_t,
pub __cpsr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_thread_state"]
[::std::mem::size_of::<__darwin_arm_thread_state>() - 68usize];
["Alignment of __darwin_arm_thread_state"]
[::std::mem::align_of::<__darwin_arm_thread_state>() - 4usize];
["Offset of field: __darwin_arm_thread_state::__r"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __r) - 0usize];
["Offset of field: __darwin_arm_thread_state::__sp"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __sp) - 52usize];
["Offset of field: __darwin_arm_thread_state::__lr"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __lr) - 56usize];
["Offset of field: __darwin_arm_thread_state::__pc"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __pc) - 60usize];
["Offset of field: __darwin_arm_thread_state::__cpsr"]
[::std::mem::offset_of!(__darwin_arm_thread_state, __cpsr) - 64usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_thread_state64 {
pub __x: [__uint64_t; 29usize],
pub __fp: __uint64_t,
pub __lr: __uint64_t,
pub __sp: __uint64_t,
pub __pc: __uint64_t,
pub __cpsr: __uint32_t,
pub __pad: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_thread_state64"]
[::std::mem::size_of::<__darwin_arm_thread_state64>() - 272usize];
["Alignment of __darwin_arm_thread_state64"]
[::std::mem::align_of::<__darwin_arm_thread_state64>() - 8usize];
["Offset of field: __darwin_arm_thread_state64::__x"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __x) - 0usize];
["Offset of field: __darwin_arm_thread_state64::__fp"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __fp) - 232usize];
["Offset of field: __darwin_arm_thread_state64::__lr"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __lr) - 240usize];
["Offset of field: __darwin_arm_thread_state64::__sp"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __sp) - 248usize];
["Offset of field: __darwin_arm_thread_state64::__pc"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __pc) - 256usize];
["Offset of field: __darwin_arm_thread_state64::__cpsr"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __cpsr) - 264usize];
["Offset of field: __darwin_arm_thread_state64::__pad"]
[::std::mem::offset_of!(__darwin_arm_thread_state64, __pad) - 268usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_vfp_state {
pub __r: [__uint32_t; 64usize],
pub __fpscr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_vfp_state"][::std::mem::size_of::<__darwin_arm_vfp_state>() - 260usize];
["Alignment of __darwin_arm_vfp_state"]
[::std::mem::align_of::<__darwin_arm_vfp_state>() - 4usize];
["Offset of field: __darwin_arm_vfp_state::__r"]
[::std::mem::offset_of!(__darwin_arm_vfp_state, __r) - 0usize];
["Offset of field: __darwin_arm_vfp_state::__fpscr"]
[::std::mem::offset_of!(__darwin_arm_vfp_state, __fpscr) - 256usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_neon_state64 {
pub __v: [__uint128_t; 32usize],
pub __fpsr: __uint32_t,
pub __fpcr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_neon_state64"]
[::std::mem::size_of::<__darwin_arm_neon_state64>() - 528usize];
["Alignment of __darwin_arm_neon_state64"]
[::std::mem::align_of::<__darwin_arm_neon_state64>() - 16usize];
["Offset of field: __darwin_arm_neon_state64::__v"]
[::std::mem::offset_of!(__darwin_arm_neon_state64, __v) - 0usize];
["Offset of field: __darwin_arm_neon_state64::__fpsr"]
[::std::mem::offset_of!(__darwin_arm_neon_state64, __fpsr) - 512usize];
["Offset of field: __darwin_arm_neon_state64::__fpcr"]
[::std::mem::offset_of!(__darwin_arm_neon_state64, __fpcr) - 516usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_neon_state {
pub __v: [__uint128_t; 16usize],
pub __fpsr: __uint32_t,
pub __fpcr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_neon_state"]
[::std::mem::size_of::<__darwin_arm_neon_state>() - 272usize];
["Alignment of __darwin_arm_neon_state"]
[::std::mem::align_of::<__darwin_arm_neon_state>() - 16usize];
["Offset of field: __darwin_arm_neon_state::__v"]
[::std::mem::offset_of!(__darwin_arm_neon_state, __v) - 0usize];
["Offset of field: __darwin_arm_neon_state::__fpsr"]
[::std::mem::offset_of!(__darwin_arm_neon_state, __fpsr) - 256usize];
["Offset of field: __darwin_arm_neon_state::__fpcr"]
[::std::mem::offset_of!(__darwin_arm_neon_state, __fpcr) - 260usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __arm_pagein_state {
pub __pagein_error: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __arm_pagein_state"][::std::mem::size_of::<__arm_pagein_state>() - 4usize];
["Alignment of __arm_pagein_state"][::std::mem::align_of::<__arm_pagein_state>() - 4usize];
["Offset of field: __arm_pagein_state::__pagein_error"]
[::std::mem::offset_of!(__arm_pagein_state, __pagein_error) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __arm_legacy_debug_state {
pub __bvr: [__uint32_t; 16usize],
pub __bcr: [__uint32_t; 16usize],
pub __wvr: [__uint32_t; 16usize],
pub __wcr: [__uint32_t; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __arm_legacy_debug_state"]
[::std::mem::size_of::<__arm_legacy_debug_state>() - 256usize];
["Alignment of __arm_legacy_debug_state"]
[::std::mem::align_of::<__arm_legacy_debug_state>() - 4usize];
["Offset of field: __arm_legacy_debug_state::__bvr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __bvr) - 0usize];
["Offset of field: __arm_legacy_debug_state::__bcr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __bcr) - 64usize];
["Offset of field: __arm_legacy_debug_state::__wvr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __wvr) - 128usize];
["Offset of field: __arm_legacy_debug_state::__wcr"]
[::std::mem::offset_of!(__arm_legacy_debug_state, __wcr) - 192usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_debug_state32 {
pub __bvr: [__uint32_t; 16usize],
pub __bcr: [__uint32_t; 16usize],
pub __wvr: [__uint32_t; 16usize],
pub __wcr: [__uint32_t; 16usize],
pub __mdscr_el1: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_debug_state32"]
[::std::mem::size_of::<__darwin_arm_debug_state32>() - 264usize];
["Alignment of __darwin_arm_debug_state32"]
[::std::mem::align_of::<__darwin_arm_debug_state32>() - 8usize];
["Offset of field: __darwin_arm_debug_state32::__bvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __bvr) - 0usize];
["Offset of field: __darwin_arm_debug_state32::__bcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __bcr) - 64usize];
["Offset of field: __darwin_arm_debug_state32::__wvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __wvr) - 128usize];
["Offset of field: __darwin_arm_debug_state32::__wcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __wcr) - 192usize];
["Offset of field: __darwin_arm_debug_state32::__mdscr_el1"]
[::std::mem::offset_of!(__darwin_arm_debug_state32, __mdscr_el1) - 256usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_debug_state64 {
pub __bvr: [__uint64_t; 16usize],
pub __bcr: [__uint64_t; 16usize],
pub __wvr: [__uint64_t; 16usize],
pub __wcr: [__uint64_t; 16usize],
pub __mdscr_el1: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_debug_state64"]
[::std::mem::size_of::<__darwin_arm_debug_state64>() - 520usize];
["Alignment of __darwin_arm_debug_state64"]
[::std::mem::align_of::<__darwin_arm_debug_state64>() - 8usize];
["Offset of field: __darwin_arm_debug_state64::__bvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __bvr) - 0usize];
["Offset of field: __darwin_arm_debug_state64::__bcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __bcr) - 128usize];
["Offset of field: __darwin_arm_debug_state64::__wvr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __wvr) - 256usize];
["Offset of field: __darwin_arm_debug_state64::__wcr"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __wcr) - 384usize];
["Offset of field: __darwin_arm_debug_state64::__mdscr_el1"]
[::std::mem::offset_of!(__darwin_arm_debug_state64, __mdscr_el1) - 512usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_cpmu_state64 {
pub __ctrs: [__uint64_t; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_arm_cpmu_state64"]
[::std::mem::size_of::<__darwin_arm_cpmu_state64>() - 128usize];
["Alignment of __darwin_arm_cpmu_state64"]
[::std::mem::align_of::<__darwin_arm_cpmu_state64>() - 8usize];
["Offset of field: __darwin_arm_cpmu_state64::__ctrs"]
[::std::mem::offset_of!(__darwin_arm_cpmu_state64, __ctrs) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext32 {
pub __es: __darwin_arm_exception_state,
pub __ss: __darwin_arm_thread_state,
pub __fs: __darwin_arm_vfp_state,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_mcontext32"][::std::mem::size_of::<__darwin_mcontext32>() - 340usize];
["Alignment of __darwin_mcontext32"][::std::mem::align_of::<__darwin_mcontext32>() - 4usize];
["Offset of field: __darwin_mcontext32::__es"]
[::std::mem::offset_of!(__darwin_mcontext32, __es) - 0usize];
["Offset of field: __darwin_mcontext32::__ss"]
[::std::mem::offset_of!(__darwin_mcontext32, __ss) - 12usize];
["Offset of field: __darwin_mcontext32::__fs"]
[::std::mem::offset_of!(__darwin_mcontext32, __fs) - 80usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext64 {
pub __es: __darwin_arm_exception_state64,
pub __ss: __darwin_arm_thread_state64,
pub __ns: __darwin_arm_neon_state64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_mcontext64"][::std::mem::size_of::<__darwin_mcontext64>() - 816usize];
["Alignment of __darwin_mcontext64"][::std::mem::align_of::<__darwin_mcontext64>() - 16usize];
["Offset of field: __darwin_mcontext64::__es"]
[::std::mem::offset_of!(__darwin_mcontext64, __es) - 0usize];
["Offset of field: __darwin_mcontext64::__ss"]
[::std::mem::offset_of!(__darwin_mcontext64, __ss) - 16usize];
["Offset of field: __darwin_mcontext64::__ns"]
[::std::mem::offset_of!(__darwin_mcontext64, __ns) - 288usize];
};
pub type mcontext_t = *mut __darwin_mcontext64;
pub type pthread_attr_t = __darwin_pthread_attr_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_sigaltstack {
pub ss_sp: *mut ::std::os::raw::c_void,
pub ss_size: __darwin_size_t,
pub ss_flags: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_sigaltstack"][::std::mem::size_of::<__darwin_sigaltstack>() - 24usize];
["Alignment of __darwin_sigaltstack"][::std::mem::align_of::<__darwin_sigaltstack>() - 8usize];
["Offset of field: __darwin_sigaltstack::ss_sp"]
[::std::mem::offset_of!(__darwin_sigaltstack, ss_sp) - 0usize];
["Offset of field: __darwin_sigaltstack::ss_size"]
[::std::mem::offset_of!(__darwin_sigaltstack, ss_size) - 8usize];
["Offset of field: __darwin_sigaltstack::ss_flags"]
[::std::mem::offset_of!(__darwin_sigaltstack, ss_flags) - 16usize];
};
pub type stack_t = __darwin_sigaltstack;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_ucontext {
pub uc_onstack: ::std::os::raw::c_int,
pub uc_sigmask: __darwin_sigset_t,
pub uc_stack: __darwin_sigaltstack,
pub uc_link: *mut __darwin_ucontext,
pub uc_mcsize: __darwin_size_t,
pub uc_mcontext: *mut __darwin_mcontext64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __darwin_ucontext"][::std::mem::size_of::<__darwin_ucontext>() - 56usize];
["Alignment of __darwin_ucontext"][::std::mem::align_of::<__darwin_ucontext>() - 8usize];
["Offset of field: __darwin_ucontext::uc_onstack"]
[::std::mem::offset_of!(__darwin_ucontext, uc_onstack) - 0usize];
["Offset of field: __darwin_ucontext::uc_sigmask"]
[::std::mem::offset_of!(__darwin_ucontext, uc_sigmask) - 4usize];
["Offset of field: __darwin_ucontext::uc_stack"]
[::std::mem::offset_of!(__darwin_ucontext, uc_stack) - 8usize];
["Offset of field: __darwin_ucontext::uc_link"]
[::std::mem::offset_of!(__darwin_ucontext, uc_link) - 32usize];
["Offset of field: __darwin_ucontext::uc_mcsize"]
[::std::mem::offset_of!(__darwin_ucontext, uc_mcsize) - 40usize];
["Offset of field: __darwin_ucontext::uc_mcontext"]
[::std::mem::offset_of!(__darwin_ucontext, uc_mcontext) - 48usize];
};
pub type ucontext_t = __darwin_ucontext;
pub type sigset_t = __darwin_sigset_t;
pub type uid_t = __darwin_uid_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigval {
pub sival_int: ::std::os::raw::c_int,
pub sival_ptr: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigval"][::std::mem::size_of::<sigval>() - 8usize];
["Alignment of sigval"][::std::mem::align_of::<sigval>() - 8usize];
["Offset of field: sigval::sival_int"][::std::mem::offset_of!(sigval, sival_int) - 0usize];
["Offset of field: sigval::sival_ptr"][::std::mem::offset_of!(sigval, sival_ptr) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
pub sigev_notify: ::std::os::raw::c_int,
pub sigev_signo: ::std::os::raw::c_int,
pub sigev_value: sigval,
pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
pub sigev_notify_attributes: *mut pthread_attr_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigevent"][::std::mem::size_of::<sigevent>() - 32usize];
["Alignment of sigevent"][::std::mem::align_of::<sigevent>() - 8usize];
["Offset of field: sigevent::sigev_notify"]
[::std::mem::offset_of!(sigevent, sigev_notify) - 0usize];
["Offset of field: sigevent::sigev_signo"]
[::std::mem::offset_of!(sigevent, sigev_signo) - 4usize];
["Offset of field: sigevent::sigev_value"]
[::std::mem::offset_of!(sigevent, sigev_value) - 8usize];
["Offset of field: sigevent::sigev_notify_function"]
[::std::mem::offset_of!(sigevent, sigev_notify_function) - 16usize];
["Offset of field: sigevent::sigev_notify_attributes"]
[::std::mem::offset_of!(sigevent, sigev_notify_attributes) - 24usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __siginfo {
pub si_signo: ::std::os::raw::c_int,
pub si_errno: ::std::os::raw::c_int,
pub si_code: ::std::os::raw::c_int,
pub si_pid: pid_t,
pub si_uid: uid_t,
pub si_status: ::std::os::raw::c_int,
pub si_addr: *mut ::std::os::raw::c_void,
pub si_value: sigval,
pub si_band: ::std::os::raw::c_long,
pub __pad: [::std::os::raw::c_ulong; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __siginfo"][::std::mem::size_of::<__siginfo>() - 104usize];
["Alignment of __siginfo"][::std::mem::align_of::<__siginfo>() - 8usize];
["Offset of field: __siginfo::si_signo"][::std::mem::offset_of!(__siginfo, si_signo) - 0usize];
["Offset of field: __siginfo::si_errno"][::std::mem::offset_of!(__siginfo, si_errno) - 4usize];
["Offset of field: __siginfo::si_code"][::std::mem::offset_of!(__siginfo, si_code) - 8usize];
["Offset of field: __siginfo::si_pid"][::std::mem::offset_of!(__siginfo, si_pid) - 12usize];
["Offset of field: __siginfo::si_uid"][::std::mem::offset_of!(__siginfo, si_uid) - 16usize];
["Offset of field: __siginfo::si_status"]
[::std::mem::offset_of!(__siginfo, si_status) - 20usize];
["Offset of field: __siginfo::si_addr"][::std::mem::offset_of!(__siginfo, si_addr) - 24usize];
["Offset of field: __siginfo::si_value"][::std::mem::offset_of!(__siginfo, si_value) - 32usize];
["Offset of field: __siginfo::si_band"][::std::mem::offset_of!(__siginfo, si_band) - 40usize];
["Offset of field: __siginfo::__pad"][::std::mem::offset_of!(__siginfo, __pad) - 48usize];
};
pub type siginfo_t = __siginfo;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __sigaction_u {
pub __sa_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
pub __sa_sigaction: ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: *mut __siginfo,
arg3: *mut ::std::os::raw::c_void,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sigaction_u"][::std::mem::size_of::<__sigaction_u>() - 8usize];
["Alignment of __sigaction_u"][::std::mem::align_of::<__sigaction_u>() - 8usize];
["Offset of field: __sigaction_u::__sa_handler"]
[::std::mem::offset_of!(__sigaction_u, __sa_handler) - 0usize];
["Offset of field: __sigaction_u::__sa_sigaction"]
[::std::mem::offset_of!(__sigaction_u, __sa_sigaction) - 0usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_tramp: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut siginfo_t,
arg5: *mut ::std::os::raw::c_void,
),
>,
pub sa_mask: sigset_t,
pub sa_flags: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __sigaction"][::std::mem::size_of::<__sigaction>() - 24usize];
["Alignment of __sigaction"][::std::mem::align_of::<__sigaction>() - 8usize];
["Offset of field: __sigaction::__sigaction_u"]
[::std::mem::offset_of!(__sigaction, __sigaction_u) - 0usize];
["Offset of field: __sigaction::sa_tramp"]
[::std::mem::offset_of!(__sigaction, sa_tramp) - 8usize];
["Offset of field: __sigaction::sa_mask"]
[::std::mem::offset_of!(__sigaction, sa_mask) - 16usize];
["Offset of field: __sigaction::sa_flags"]
[::std::mem::offset_of!(__sigaction, sa_flags) - 20usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
pub __sigaction_u: __sigaction_u,
pub sa_mask: sigset_t,
pub sa_flags: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigaction"][::std::mem::size_of::<sigaction>() - 16usize];
["Alignment of sigaction"][::std::mem::align_of::<sigaction>() - 8usize];
["Offset of field: sigaction::__sigaction_u"]
[::std::mem::offset_of!(sigaction, __sigaction_u) - 0usize];
["Offset of field: sigaction::sa_mask"][::std::mem::offset_of!(sigaction, sa_mask) - 8usize];
["Offset of field: sigaction::sa_flags"][::std::mem::offset_of!(sigaction, sa_flags) - 12usize];
};
pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigvec {
pub sv_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
pub sv_mask: ::std::os::raw::c_int,
pub sv_flags: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigvec"][::std::mem::size_of::<sigvec>() - 16usize];
["Alignment of sigvec"][::std::mem::align_of::<sigvec>() - 8usize];
["Offset of field: sigvec::sv_handler"][::std::mem::offset_of!(sigvec, sv_handler) - 0usize];
["Offset of field: sigvec::sv_mask"][::std::mem::offset_of!(sigvec, sv_mask) - 8usize];
["Offset of field: sigvec::sv_flags"][::std::mem::offset_of!(sigvec, sv_flags) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigstack {
pub ss_sp: *mut ::std::os::raw::c_char,
pub ss_onstack: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of sigstack"][::std::mem::size_of::<sigstack>() - 16usize];
["Alignment of sigstack"][::std::mem::align_of::<sigstack>() - 8usize];
["Offset of field: sigstack::ss_sp"][::std::mem::offset_of!(sigstack, ss_sp) - 0usize];
["Offset of field: sigstack::ss_onstack"]
[::std::mem::offset_of!(sigstack, ss_onstack) - 8usize];
};
unsafe extern "C" {
pub fn signal(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
) -> ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_int,
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>,
),
>;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
pub tv_sec: __darwin_time_t,
pub tv_usec: __darwin_suseconds_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of timeval"][::std::mem::size_of::<timeval>() - 16usize];
["Alignment of timeval"][::std::mem::align_of::<timeval>() - 8usize];
["Offset of field: timeval::tv_sec"][::std::mem::offset_of!(timeval, tv_sec) - 0usize];
["Offset of field: timeval::tv_usec"][::std::mem::offset_of!(timeval, tv_usec) - 8usize];
};
pub type rlim_t = __uint64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage {
pub ru_utime: timeval,
pub ru_stime: timeval,
pub ru_maxrss: ::std::os::raw::c_long,
pub ru_ixrss: ::std::os::raw::c_long,
pub ru_idrss: ::std::os::raw::c_long,
pub ru_isrss: ::std::os::raw::c_long,
pub ru_minflt: ::std::os::raw::c_long,
pub ru_majflt: ::std::os::raw::c_long,
pub ru_nswap: ::std::os::raw::c_long,
pub ru_inblock: ::std::os::raw::c_long,
pub ru_oublock: ::std::os::raw::c_long,
pub ru_msgsnd: ::std::os::raw::c_long,
pub ru_msgrcv: ::std::os::raw::c_long,
pub ru_nsignals: ::std::os::raw::c_long,
pub ru_nvcsw: ::std::os::raw::c_long,
pub ru_nivcsw: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage"][::std::mem::size_of::<rusage>() - 144usize];
["Alignment of rusage"][::std::mem::align_of::<rusage>() - 8usize];
["Offset of field: rusage::ru_utime"][::std::mem::offset_of!(rusage, ru_utime) - 0usize];
["Offset of field: rusage::ru_stime"][::std::mem::offset_of!(rusage, ru_stime) - 16usize];
["Offset of field: rusage::ru_maxrss"][::std::mem::offset_of!(rusage, ru_maxrss) - 32usize];
["Offset of field: rusage::ru_ixrss"][::std::mem::offset_of!(rusage, ru_ixrss) - 40usize];
["Offset of field: rusage::ru_idrss"][::std::mem::offset_of!(rusage, ru_idrss) - 48usize];
["Offset of field: rusage::ru_isrss"][::std::mem::offset_of!(rusage, ru_isrss) - 56usize];
["Offset of field: rusage::ru_minflt"][::std::mem::offset_of!(rusage, ru_minflt) - 64usize];
["Offset of field: rusage::ru_majflt"][::std::mem::offset_of!(rusage, ru_majflt) - 72usize];
["Offset of field: rusage::ru_nswap"][::std::mem::offset_of!(rusage, ru_nswap) - 80usize];
["Offset of field: rusage::ru_inblock"][::std::mem::offset_of!(rusage, ru_inblock) - 88usize];
["Offset of field: rusage::ru_oublock"][::std::mem::offset_of!(rusage, ru_oublock) - 96usize];
["Offset of field: rusage::ru_msgsnd"][::std::mem::offset_of!(rusage, ru_msgsnd) - 104usize];
["Offset of field: rusage::ru_msgrcv"][::std::mem::offset_of!(rusage, ru_msgrcv) - 112usize];
["Offset of field: rusage::ru_nsignals"]
[::std::mem::offset_of!(rusage, ru_nsignals) - 120usize];
["Offset of field: rusage::ru_nvcsw"][::std::mem::offset_of!(rusage, ru_nvcsw) - 128usize];
["Offset of field: rusage::ru_nivcsw"][::std::mem::offset_of!(rusage, ru_nivcsw) - 136usize];
};
pub type rusage_info_t = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v0 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v0"][::std::mem::size_of::<rusage_info_v0>() - 96usize];
["Alignment of rusage_info_v0"][::std::mem::align_of::<rusage_info_v0>() - 8usize];
["Offset of field: rusage_info_v0::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v0, ri_uuid) - 0usize];
["Offset of field: rusage_info_v0::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v0, ri_user_time) - 16usize];
["Offset of field: rusage_info_v0::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v0, ri_system_time) - 24usize];
["Offset of field: rusage_info_v0::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v0, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v0::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v0, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v0::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v0, ri_pageins) - 48usize];
["Offset of field: rusage_info_v0::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v0, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v0::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v0, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v0::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v0, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v0::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v0, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v0::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v0, ri_proc_exit_abstime) - 88usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v1 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v1"][::std::mem::size_of::<rusage_info_v1>() - 144usize];
["Alignment of rusage_info_v1"][::std::mem::align_of::<rusage_info_v1>() - 8usize];
["Offset of field: rusage_info_v1::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v1, ri_uuid) - 0usize];
["Offset of field: rusage_info_v1::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_user_time) - 16usize];
["Offset of field: rusage_info_v1::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_system_time) - 24usize];
["Offset of field: rusage_info_v1::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v1::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v1::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v1, ri_pageins) - 48usize];
["Offset of field: rusage_info_v1::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v1, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v1::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v1, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v1::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v1, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v1::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v1, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v1::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v1, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v1::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v1::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v1::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v1::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v1::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v1::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v1, ri_child_elapsed_abstime) - 136usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v2 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v2"][::std::mem::size_of::<rusage_info_v2>() - 160usize];
["Alignment of rusage_info_v2"][::std::mem::align_of::<rusage_info_v2>() - 8usize];
["Offset of field: rusage_info_v2::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v2, ri_uuid) - 0usize];
["Offset of field: rusage_info_v2::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_user_time) - 16usize];
["Offset of field: rusage_info_v2::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_system_time) - 24usize];
["Offset of field: rusage_info_v2::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v2::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v2::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v2, ri_pageins) - 48usize];
["Offset of field: rusage_info_v2::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v2, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v2::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v2, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v2::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v2, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v2::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v2, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v2::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v2, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v2::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v2::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v2::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v2::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v2::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v2::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v2, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v2::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v2, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v2::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v2, ri_diskio_byteswritten) - 152usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v3 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v3"][::std::mem::size_of::<rusage_info_v3>() - 232usize];
["Alignment of rusage_info_v3"][::std::mem::align_of::<rusage_info_v3>() - 8usize];
["Offset of field: rusage_info_v3::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v3, ri_uuid) - 0usize];
["Offset of field: rusage_info_v3::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_user_time) - 16usize];
["Offset of field: rusage_info_v3::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_system_time) - 24usize];
["Offset of field: rusage_info_v3::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v3::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v3::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v3, ri_pageins) - 48usize];
["Offset of field: rusage_info_v3::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v3, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v3::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v3, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v3::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v3, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v3::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v3, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v3::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v3, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v3::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v3::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v3::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v3::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v3::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v3::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v3, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v3::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v3, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v3::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v3, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v3::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v3::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v3, ri_serviced_system_time) - 224usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v4 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v4"][::std::mem::size_of::<rusage_info_v4>() - 296usize];
["Alignment of rusage_info_v4"][::std::mem::align_of::<rusage_info_v4>() - 8usize];
["Offset of field: rusage_info_v4::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v4, ri_uuid) - 0usize];
["Offset of field: rusage_info_v4::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_user_time) - 16usize];
["Offset of field: rusage_info_v4::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_system_time) - 24usize];
["Offset of field: rusage_info_v4::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v4::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v4::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v4, ri_pageins) - 48usize];
["Offset of field: rusage_info_v4::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v4, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v4::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v4, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v4::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v4, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v4::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v4, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v4::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v4, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v4::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v4::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v4::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v4::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v4::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v4::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v4, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v4::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v4, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v4::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v4, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v4::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v4::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_serviced_system_time) - 224usize];
["Offset of field: rusage_info_v4::ri_logical_writes"]
[::std::mem::offset_of!(rusage_info_v4, ri_logical_writes) - 232usize];
["Offset of field: rusage_info_v4::ri_lifetime_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v4, ri_lifetime_max_phys_footprint) - 240usize];
["Offset of field: rusage_info_v4::ri_instructions"]
[::std::mem::offset_of!(rusage_info_v4, ri_instructions) - 248usize];
["Offset of field: rusage_info_v4::ri_cycles"]
[::std::mem::offset_of!(rusage_info_v4, ri_cycles) - 256usize];
["Offset of field: rusage_info_v4::ri_billed_energy"]
[::std::mem::offset_of!(rusage_info_v4, ri_billed_energy) - 264usize];
["Offset of field: rusage_info_v4::ri_serviced_energy"]
[::std::mem::offset_of!(rusage_info_v4, ri_serviced_energy) - 272usize];
["Offset of field: rusage_info_v4::ri_interval_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v4, ri_interval_max_phys_footprint) - 280usize];
["Offset of field: rusage_info_v4::ri_runnable_time"]
[::std::mem::offset_of!(rusage_info_v4, ri_runnable_time) - 288usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v5 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v5"][::std::mem::size_of::<rusage_info_v5>() - 304usize];
["Alignment of rusage_info_v5"][::std::mem::align_of::<rusage_info_v5>() - 8usize];
["Offset of field: rusage_info_v5::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v5, ri_uuid) - 0usize];
["Offset of field: rusage_info_v5::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_user_time) - 16usize];
["Offset of field: rusage_info_v5::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_system_time) - 24usize];
["Offset of field: rusage_info_v5::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v5::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v5::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v5, ri_pageins) - 48usize];
["Offset of field: rusage_info_v5::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v5, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v5::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v5, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v5::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v5, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v5::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v5, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v5::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v5, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v5::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v5::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v5::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v5::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v5::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v5::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v5, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v5::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v5, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v5::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v5, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v5::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v5::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_serviced_system_time) - 224usize];
["Offset of field: rusage_info_v5::ri_logical_writes"]
[::std::mem::offset_of!(rusage_info_v5, ri_logical_writes) - 232usize];
["Offset of field: rusage_info_v5::ri_lifetime_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v5, ri_lifetime_max_phys_footprint) - 240usize];
["Offset of field: rusage_info_v5::ri_instructions"]
[::std::mem::offset_of!(rusage_info_v5, ri_instructions) - 248usize];
["Offset of field: rusage_info_v5::ri_cycles"]
[::std::mem::offset_of!(rusage_info_v5, ri_cycles) - 256usize];
["Offset of field: rusage_info_v5::ri_billed_energy"]
[::std::mem::offset_of!(rusage_info_v5, ri_billed_energy) - 264usize];
["Offset of field: rusage_info_v5::ri_serviced_energy"]
[::std::mem::offset_of!(rusage_info_v5, ri_serviced_energy) - 272usize];
["Offset of field: rusage_info_v5::ri_interval_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v5, ri_interval_max_phys_footprint) - 280usize];
["Offset of field: rusage_info_v5::ri_runnable_time"]
[::std::mem::offset_of!(rusage_info_v5, ri_runnable_time) - 288usize];
["Offset of field: rusage_info_v5::ri_flags"]
[::std::mem::offset_of!(rusage_info_v5, ri_flags) - 296usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rusage_info_v6 {
pub ri_uuid: [u8; 16usize],
pub ri_user_time: u64,
pub ri_system_time: u64,
pub ri_pkg_idle_wkups: u64,
pub ri_interrupt_wkups: u64,
pub ri_pageins: u64,
pub ri_wired_size: u64,
pub ri_resident_size: u64,
pub ri_phys_footprint: u64,
pub ri_proc_start_abstime: u64,
pub ri_proc_exit_abstime: u64,
pub ri_child_user_time: u64,
pub ri_child_system_time: u64,
pub ri_child_pkg_idle_wkups: u64,
pub ri_child_interrupt_wkups: u64,
pub ri_child_pageins: u64,
pub ri_child_elapsed_abstime: u64,
pub ri_diskio_bytesread: u64,
pub ri_diskio_byteswritten: u64,
pub ri_cpu_time_qos_default: u64,
pub ri_cpu_time_qos_maintenance: u64,
pub ri_cpu_time_qos_background: u64,
pub ri_cpu_time_qos_utility: u64,
pub ri_cpu_time_qos_legacy: u64,
pub ri_cpu_time_qos_user_initiated: u64,
pub ri_cpu_time_qos_user_interactive: u64,
pub ri_billed_system_time: u64,
pub ri_serviced_system_time: u64,
pub ri_logical_writes: u64,
pub ri_lifetime_max_phys_footprint: u64,
pub ri_instructions: u64,
pub ri_cycles: u64,
pub ri_billed_energy: u64,
pub ri_serviced_energy: u64,
pub ri_interval_max_phys_footprint: u64,
pub ri_runnable_time: u64,
pub ri_flags: u64,
pub ri_user_ptime: u64,
pub ri_system_ptime: u64,
pub ri_pinstructions: u64,
pub ri_pcycles: u64,
pub ri_energy_nj: u64,
pub ri_penergy_nj: u64,
pub ri_secure_time_in_system: u64,
pub ri_secure_ptime_in_system: u64,
pub ri_neural_footprint: u64,
pub ri_lifetime_max_neural_footprint: u64,
pub ri_interval_max_neural_footprint: u64,
pub ri_reserved: [u64; 9usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rusage_info_v6"][::std::mem::size_of::<rusage_info_v6>() - 464usize];
["Alignment of rusage_info_v6"][::std::mem::align_of::<rusage_info_v6>() - 8usize];
["Offset of field: rusage_info_v6::ri_uuid"]
[::std::mem::offset_of!(rusage_info_v6, ri_uuid) - 0usize];
["Offset of field: rusage_info_v6::ri_user_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_user_time) - 16usize];
["Offset of field: rusage_info_v6::ri_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_system_time) - 24usize];
["Offset of field: rusage_info_v6::ri_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_pkg_idle_wkups) - 32usize];
["Offset of field: rusage_info_v6::ri_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_interrupt_wkups) - 40usize];
["Offset of field: rusage_info_v6::ri_pageins"]
[::std::mem::offset_of!(rusage_info_v6, ri_pageins) - 48usize];
["Offset of field: rusage_info_v6::ri_wired_size"]
[::std::mem::offset_of!(rusage_info_v6, ri_wired_size) - 56usize];
["Offset of field: rusage_info_v6::ri_resident_size"]
[::std::mem::offset_of!(rusage_info_v6, ri_resident_size) - 64usize];
["Offset of field: rusage_info_v6::ri_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_phys_footprint) - 72usize];
["Offset of field: rusage_info_v6::ri_proc_start_abstime"]
[::std::mem::offset_of!(rusage_info_v6, ri_proc_start_abstime) - 80usize];
["Offset of field: rusage_info_v6::ri_proc_exit_abstime"]
[::std::mem::offset_of!(rusage_info_v6, ri_proc_exit_abstime) - 88usize];
["Offset of field: rusage_info_v6::ri_child_user_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_user_time) - 96usize];
["Offset of field: rusage_info_v6::ri_child_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_system_time) - 104usize];
["Offset of field: rusage_info_v6::ri_child_pkg_idle_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_pkg_idle_wkups) - 112usize];
["Offset of field: rusage_info_v6::ri_child_interrupt_wkups"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_interrupt_wkups) - 120usize];
["Offset of field: rusage_info_v6::ri_child_pageins"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_pageins) - 128usize];
["Offset of field: rusage_info_v6::ri_child_elapsed_abstime"]
[::std::mem::offset_of!(rusage_info_v6, ri_child_elapsed_abstime) - 136usize];
["Offset of field: rusage_info_v6::ri_diskio_bytesread"]
[::std::mem::offset_of!(rusage_info_v6, ri_diskio_bytesread) - 144usize];
["Offset of field: rusage_info_v6::ri_diskio_byteswritten"]
[::std::mem::offset_of!(rusage_info_v6, ri_diskio_byteswritten) - 152usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_default"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_default) - 160usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_maintenance"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_maintenance) - 168usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_background"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_background) - 176usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_utility"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_utility) - 184usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_legacy"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_legacy) - 192usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_user_initiated"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_user_initiated) - 200usize];
["Offset of field: rusage_info_v6::ri_cpu_time_qos_user_interactive"]
[::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_user_interactive) - 208usize];
["Offset of field: rusage_info_v6::ri_billed_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_billed_system_time) - 216usize];
["Offset of field: rusage_info_v6::ri_serviced_system_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_serviced_system_time) - 224usize];
["Offset of field: rusage_info_v6::ri_logical_writes"]
[::std::mem::offset_of!(rusage_info_v6, ri_logical_writes) - 232usize];
["Offset of field: rusage_info_v6::ri_lifetime_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_lifetime_max_phys_footprint) - 240usize];
["Offset of field: rusage_info_v6::ri_instructions"]
[::std::mem::offset_of!(rusage_info_v6, ri_instructions) - 248usize];
["Offset of field: rusage_info_v6::ri_cycles"]
[::std::mem::offset_of!(rusage_info_v6, ri_cycles) - 256usize];
["Offset of field: rusage_info_v6::ri_billed_energy"]
[::std::mem::offset_of!(rusage_info_v6, ri_billed_energy) - 264usize];
["Offset of field: rusage_info_v6::ri_serviced_energy"]
[::std::mem::offset_of!(rusage_info_v6, ri_serviced_energy) - 272usize];
["Offset of field: rusage_info_v6::ri_interval_max_phys_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_interval_max_phys_footprint) - 280usize];
["Offset of field: rusage_info_v6::ri_runnable_time"]
[::std::mem::offset_of!(rusage_info_v6, ri_runnable_time) - 288usize];
["Offset of field: rusage_info_v6::ri_flags"]
[::std::mem::offset_of!(rusage_info_v6, ri_flags) - 296usize];
["Offset of field: rusage_info_v6::ri_user_ptime"]
[::std::mem::offset_of!(rusage_info_v6, ri_user_ptime) - 304usize];
["Offset of field: rusage_info_v6::ri_system_ptime"]
[::std::mem::offset_of!(rusage_info_v6, ri_system_ptime) - 312usize];
["Offset of field: rusage_info_v6::ri_pinstructions"]
[::std::mem::offset_of!(rusage_info_v6, ri_pinstructions) - 320usize];
["Offset of field: rusage_info_v6::ri_pcycles"]
[::std::mem::offset_of!(rusage_info_v6, ri_pcycles) - 328usize];
["Offset of field: rusage_info_v6::ri_energy_nj"]
[::std::mem::offset_of!(rusage_info_v6, ri_energy_nj) - 336usize];
["Offset of field: rusage_info_v6::ri_penergy_nj"]
[::std::mem::offset_of!(rusage_info_v6, ri_penergy_nj) - 344usize];
["Offset of field: rusage_info_v6::ri_secure_time_in_system"]
[::std::mem::offset_of!(rusage_info_v6, ri_secure_time_in_system) - 352usize];
["Offset of field: rusage_info_v6::ri_secure_ptime_in_system"]
[::std::mem::offset_of!(rusage_info_v6, ri_secure_ptime_in_system) - 360usize];
["Offset of field: rusage_info_v6::ri_neural_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_neural_footprint) - 368usize];
["Offset of field: rusage_info_v6::ri_lifetime_max_neural_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_lifetime_max_neural_footprint) - 376usize];
["Offset of field: rusage_info_v6::ri_interval_max_neural_footprint"]
[::std::mem::offset_of!(rusage_info_v6, ri_interval_max_neural_footprint) - 384usize];
["Offset of field: rusage_info_v6::ri_reserved"]
[::std::mem::offset_of!(rusage_info_v6, ri_reserved) - 392usize];
};
pub type rusage_info_current = rusage_info_v6;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rlimit {
pub rlim_cur: rlim_t,
pub rlim_max: rlim_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of rlimit"][::std::mem::size_of::<rlimit>() - 16usize];
["Alignment of rlimit"][::std::mem::align_of::<rlimit>() - 8usize];
["Offset of field: rlimit::rlim_cur"][::std::mem::offset_of!(rlimit, rlim_cur) - 0usize];
["Offset of field: rlimit::rlim_max"][::std::mem::offset_of!(rlimit, rlim_max) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct proc_rlimit_control_wakeupmon {
pub wm_flags: u32,
pub wm_rate: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of proc_rlimit_control_wakeupmon"]
[::std::mem::size_of::<proc_rlimit_control_wakeupmon>() - 8usize];
["Alignment of proc_rlimit_control_wakeupmon"]
[::std::mem::align_of::<proc_rlimit_control_wakeupmon>() - 4usize];
["Offset of field: proc_rlimit_control_wakeupmon::wm_flags"]
[::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_flags) - 0usize];
["Offset of field: proc_rlimit_control_wakeupmon::wm_rate"]
[::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_rate) - 4usize];
};
unsafe extern "C" {
pub fn getpriority(arg1: ::std::os::raw::c_int, arg2: id_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getiopolicy_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getrlimit(arg1: ::std::os::raw::c_int, arg2: *mut rlimit) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getrusage(arg1: ::std::os::raw::c_int, arg2: *mut rusage) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setpriority(
arg1: ::std::os::raw::c_int,
arg2: id_t,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setiopolicy_np(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setrlimit(arg1: ::std::os::raw::c_int, arg2: *const rlimit) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union wait {
pub w_status: ::std::os::raw::c_int,
pub w_T: wait__bindgen_ty_1,
pub w_S: wait__bindgen_ty_2,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct wait__bindgen_ty_1 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of wait__bindgen_ty_1"][::std::mem::size_of::<wait__bindgen_ty_1>() - 4usize];
["Alignment of wait__bindgen_ty_1"][::std::mem::align_of::<wait__bindgen_ty_1>() - 4usize];
};
impl wait__bindgen_ty_1 {
#[inline]
pub fn w_Termsig(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) }
}
#[inline]
pub fn set_w_Termsig(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 7u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Termsig_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
7u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Termsig_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
0usize,
7u8,
val as u64,
)
}
}
#[inline]
pub fn w_Coredump(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
}
#[inline]
pub fn set_w_Coredump(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(7usize, 1u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Coredump_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
7usize,
1u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Coredump_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
7usize,
1u8,
val as u64,
)
}
}
#[inline]
pub fn w_Retcode(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Retcode(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Retcode_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Retcode_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
8usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
16u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
w_Termsig: ::std::os::raw::c_uint,
w_Coredump: ::std::os::raw::c_uint,
w_Retcode: ::std::os::raw::c_uint,
w_Filler: ::std::os::raw::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 7u8, {
let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) };
w_Termsig as u64
});
__bindgen_bitfield_unit.set(7usize, 1u8, {
let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) };
w_Coredump as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) };
w_Retcode as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct wait__bindgen_ty_2 {
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of wait__bindgen_ty_2"][::std::mem::size_of::<wait__bindgen_ty_2>() - 4usize];
["Alignment of wait__bindgen_ty_2"][::std::mem::align_of::<wait__bindgen_ty_2>() - 4usize];
};
impl wait__bindgen_ty_2 {
#[inline]
pub fn w_Stopval(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopval(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Stopval_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
0usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Stopval_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
0usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Stopsig(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
}
#[inline]
pub fn set_w_Stopsig(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(8usize, 8u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Stopsig_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
8usize,
8u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Stopsig_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
8usize,
8u8,
val as u64,
)
}
}
#[inline]
pub fn w_Filler(&self) -> ::std::os::raw::c_uint {
unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
}
#[inline]
pub fn set_w_Filler(&mut self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(16usize, 16u8, val as u64)
}
}
#[inline]
pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::os::raw::c_uint {
unsafe {
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
::std::ptr::addr_of!((*this)._bitfield_1),
16usize,
16u8,
) as u32)
}
}
#[inline]
pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
::std::ptr::addr_of_mut!((*this)._bitfield_1),
16usize,
16u8,
val as u64,
)
}
}
#[inline]
pub fn new_bitfield_1(
w_Stopval: ::std::os::raw::c_uint,
w_Stopsig: ::std::os::raw::c_uint,
w_Filler: ::std::os::raw::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) };
w_Stopval as u64
});
__bindgen_bitfield_unit.set(8usize, 8u8, {
let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) };
w_Stopsig as u64
});
__bindgen_bitfield_unit.set(16usize, 16u8, {
let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
w_Filler as u64
});
__bindgen_bitfield_unit
}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of wait"][::std::mem::size_of::<wait>() - 4usize];
["Alignment of wait"][::std::mem::align_of::<wait>() - 4usize];
["Offset of field: wait::w_status"][::std::mem::offset_of!(wait, w_status) - 0usize];
["Offset of field: wait::w_T"][::std::mem::offset_of!(wait, w_T) - 0usize];
["Offset of field: wait::w_S"][::std::mem::offset_of!(wait, w_S) - 0usize];
};
unsafe extern "C" {
pub fn wait(arg1: *mut ::std::os::raw::c_int) -> pid_t;
}
unsafe extern "C" {
pub fn waitpid(
arg1: pid_t,
arg2: *mut ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
) -> pid_t;
}
unsafe extern "C" {
pub fn waitid(
arg1: idtype_t,
arg2: id_t,
arg3: *mut siginfo_t,
arg4: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn wait3(
arg1: *mut ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
arg3: *mut rusage,
) -> pid_t;
}
unsafe extern "C" {
pub fn wait4(
arg1: pid_t,
arg2: *mut ::std::os::raw::c_int,
arg3: ::std::os::raw::c_int,
arg4: *mut rusage,
) -> pid_t;
}
unsafe extern "C" {
pub fn alloca(arg1: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
pub type ct_rune_t = __darwin_ct_rune_t;
pub type rune_t = __darwin_rune_t;
pub type wchar_t = __darwin_wchar_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of div_t"][::std::mem::size_of::<div_t>() - 8usize];
["Alignment of div_t"][::std::mem::align_of::<div_t>() - 4usize];
["Offset of field: div_t::quot"][::std::mem::offset_of!(div_t, quot) - 0usize];
["Offset of field: div_t::rem"][::std::mem::offset_of!(div_t, rem) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of ldiv_t"][::std::mem::size_of::<ldiv_t>() - 16usize];
["Alignment of ldiv_t"][::std::mem::align_of::<ldiv_t>() - 8usize];
["Offset of field: ldiv_t::quot"][::std::mem::offset_of!(ldiv_t, quot) - 0usize];
["Offset of field: ldiv_t::rem"][::std::mem::offset_of!(ldiv_t, rem) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of lldiv_t"][::std::mem::size_of::<lldiv_t>() - 16usize];
["Alignment of lldiv_t"][::std::mem::align_of::<lldiv_t>() - 8usize];
["Offset of field: lldiv_t::quot"][::std::mem::offset_of!(lldiv_t, quot) - 0usize];
["Offset of field: lldiv_t::rem"][::std::mem::offset_of!(lldiv_t, rem) - 8usize];
};
unsafe extern "C" {
pub static mut __mb_cur_max: ::std::os::raw::c_int;
}
pub type malloc_type_id_t = ::std::os::raw::c_ulonglong;
unsafe extern "C" {
pub fn malloc_type_malloc(
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_calloc(
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_free(ptr: *mut ::std::os::raw::c_void, type_id: malloc_type_id_t);
}
unsafe extern "C" {
pub fn malloc_type_realloc(
ptr: *mut ::std::os::raw::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_valloc(
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_aligned_alloc(
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_posix_memalign(
memptr: *mut *mut ::std::os::raw::c_void,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _malloc_zone_t {
_unused: [u8; 0],
}
pub type malloc_zone_t = _malloc_zone_t;
unsafe extern "C" {
pub fn malloc_type_zone_malloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_calloc(
zone: *mut malloc_zone_t,
count: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_free(
zone: *mut malloc_zone_t,
ptr: *mut ::std::os::raw::c_void,
type_id: malloc_type_id_t,
);
}
unsafe extern "C" {
pub fn malloc_type_zone_realloc(
zone: *mut malloc_zone_t,
ptr: *mut ::std::os::raw::c_void,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_valloc(
zone: *mut malloc_zone_t,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc_type_zone_memalign(
zone: *mut malloc_zone_t,
alignment: usize,
size: usize,
type_id: malloc_type_id_t,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn calloc(
__count: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn free(arg1: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn reallocf(
__ptr: *mut ::std::os::raw::c_void,
__size: usize,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn aligned_alloc(
__alignment: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn abort() -> !;
}
unsafe extern "C" {
pub fn abs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn at_quick_exit(
arg1: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn atof(arg1: *const ::std::os::raw::c_char) -> f64;
}
unsafe extern "C" {
pub fn atoi(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn atol(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn atoll(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn div(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int) -> div_t;
}
unsafe extern "C" {
pub fn exit(arg1: ::std::os::raw::c_int) -> !;
}
unsafe extern "C" {
pub fn getenv(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn labs(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn ldiv(arg1: ::std::os::raw::c_long, arg2: ::std::os::raw::c_long) -> ldiv_t;
}
unsafe extern "C" {
pub fn llabs(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn lldiv(arg1: ::std::os::raw::c_longlong, arg2: ::std::os::raw::c_longlong) -> lldiv_t;
}
unsafe extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::os::raw::c_char, arg3: usize) -> usize;
}
unsafe extern "C" {
pub fn mbtowc(
arg1: *mut wchar_t,
arg2: *const ::std::os::raw::c_char,
arg3: usize,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
unsafe extern "C" {
pub fn quick_exit(arg1: ::std::os::raw::c_int) -> !;
}
unsafe extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn srand(arg1: ::std::os::raw::c_uint);
}
unsafe extern "C" {
pub fn strtod(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
unsafe extern "C" {
pub fn strtof(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
unsafe extern "C" {
pub fn strtol(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn strtold(
arg1: *const ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
unsafe extern "C" {
pub fn strtoll(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn strtoul(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strtoull(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
unsafe extern "C" {
pub fn system(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn wcstombs(arg1: *mut ::std::os::raw::c_char, arg2: *const wchar_t, arg3: usize) -> usize;
}
unsafe extern "C" {
pub fn wctomb(arg1: *mut ::std::os::raw::c_char, arg2: wchar_t) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn _Exit(arg1: ::std::os::raw::c_int) -> !;
}
unsafe extern "C" {
pub fn a64l(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn drand48() -> f64;
}
unsafe extern "C" {
pub fn ecvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn erand48(arg1: *mut ::std::os::raw::c_ushort) -> f64;
}
unsafe extern "C" {
pub fn fcvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_int,
arg4: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn gcvt(
arg1: f64,
arg2: ::std::os::raw::c_int,
arg3: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn getsubopt(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const *mut ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn grantpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn initstate(
arg1: ::std::os::raw::c_uint,
arg2: *mut ::std::os::raw::c_char,
arg3: usize,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn jrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn l64a(arg1: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn lcong48(arg1: *mut ::std::os::raw::c_ushort);
}
unsafe extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn mktemp(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn mkstemp(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn nrand48(arg1: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn posix_openpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ptsname(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn ptsname_r(
fildes: ::std::os::raw::c_int,
buffer: *mut ::std::os::raw::c_char,
buflen: usize,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn putenv(arg1: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
unsafe extern "C" {
pub fn rand_r(arg1: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
#[link_name = "\u{1}_realpath$DARWIN_EXTSN"]
pub fn realpath(
arg1: *const ::std::os::raw::c_char,
arg2: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn seed48(arg1: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
unsafe extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__overwrite: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn setkey(arg1: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn setstate(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn srand48(arg1: ::std::os::raw::c_long);
}
unsafe extern "C" {
pub fn srandom(arg1: ::std::os::raw::c_uint);
}
unsafe extern "C" {
pub fn unlockpt(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn unsetenv(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
pub type dev_t = __darwin_dev_t;
pub type mode_t = __darwin_mode_t;
unsafe extern "C" {
pub fn arc4random() -> u32;
}
unsafe extern "C" {
pub fn arc4random_addrandom(arg1: *mut ::std::os::raw::c_uchar, arg2: ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __nbytes: usize);
}
unsafe extern "C" {
pub fn arc4random_stir();
}
unsafe extern "C" {
pub fn arc4random_uniform(__upper_bound: u32) -> u32;
}
unsafe extern "C" {
pub fn atexit_b(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn bsearch_b(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn cgetcap(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn cgetclose() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetent(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetfirst(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetmatch(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetnext(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetnum(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetset(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetstr(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn cgetustr(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn daemon(
arg1: ::std::os::raw::c_int,
arg2: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn devname_r(
arg1: dev_t,
arg2: mode_t,
buf: *mut ::std::os::raw::c_char,
len: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn getbsize(
arg1: *mut ::std::os::raw::c_int,
arg2: *mut ::std::os::raw::c_long,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn getloadavg(arg1: *mut f64, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn getprogname() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn setprogname(arg1: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn heapsort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn heapsort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mergesort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn mergesort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn psort(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
unsafe extern "C" {
pub fn psort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn psort_r(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::os::raw::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
unsafe extern "C" {
pub fn qsort_b(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
__compar: *mut ::std::os::raw::c_void,
);
}
unsafe extern "C" {
pub fn qsort_r(
__base: *mut ::std::os::raw::c_void,
__nel: usize,
__width: usize,
arg1: *mut ::std::os::raw::c_void,
__compar: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
);
}
unsafe extern "C" {
pub fn radixsort(
__base: *mut *const ::std::os::raw::c_uchar,
__nel: ::std::os::raw::c_int,
__table: *const ::std::os::raw::c_uchar,
__endbyte: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn rpmatch(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sradixsort(
__base: *mut *const ::std::os::raw::c_uchar,
__nel: ::std::os::raw::c_int,
__table: *const ::std::os::raw::c_uchar,
__endbyte: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn sranddev();
}
unsafe extern "C" {
pub fn srandomdev();
}
unsafe extern "C" {
pub fn strtonum(
__numstr: *const ::std::os::raw::c_char,
__minval: ::std::os::raw::c_longlong,
__maxval: ::std::os::raw::c_longlong,
__errstrp: *mut *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn strtoq(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
unsafe extern "C" {
pub fn strtouq(
__str: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
unsafe extern "C" {
pub static mut suboptarg: *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn memchr(
__s: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memcmp(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn memcpy(
__dst: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memmove(
__dst: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__len: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memset(
__b: *mut ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__len: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn strcat(
__s1: *mut ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strcmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strcoll(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strcpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strcspn(
__s: *const ::std::os::raw::c_char,
__charset: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strncat(
__s1: *mut ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strncmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strncpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strpbrk(
__s: *const ::std::os::raw::c_char,
__charset: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strrchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strspn(
__s: *const ::std::os::raw::c_char,
__charset: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strstr(
__big: *const ::std::os::raw::c_char,
__little: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strtok(
__str: *mut ::std::os::raw::c_char,
__sep: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strxfrm(
__s1: *mut ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strtok_r(
__str: *mut ::std::os::raw::c_char,
__sep: *const ::std::os::raw::c_char,
__lasts: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strerror_r(
__errnum: ::std::os::raw::c_int,
__strerrbuf: *mut ::std::os::raw::c_char,
__buflen: usize,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strdup(__s1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn memccpy(
__dst: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn stpcpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn stpncpy(
__dst: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strndup(
__s1: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strnlen(__s1: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
unsafe extern "C" {
pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
pub type rsize_t = __darwin_size_t;
pub type errno_t = ::std::os::raw::c_int;
unsafe extern "C" {
pub fn memset_s(
__s: *mut ::std::os::raw::c_void,
__smax: rsize_t,
__c: ::std::os::raw::c_int,
__n: rsize_t,
) -> errno_t;
}
unsafe extern "C" {
pub fn memmem(
__big: *const ::std::os::raw::c_void,
__big_len: usize,
__little: *const ::std::os::raw::c_void,
__little_len: usize,
) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn memset_pattern4(
__b: *mut ::std::os::raw::c_void,
__pattern4: *const ::std::os::raw::c_void,
__len: usize,
);
}
unsafe extern "C" {
pub fn memset_pattern8(
__b: *mut ::std::os::raw::c_void,
__pattern8: *const ::std::os::raw::c_void,
__len: usize,
);
}
unsafe extern "C" {
pub fn memset_pattern16(
__b: *mut ::std::os::raw::c_void,
__pattern16: *const ::std::os::raw::c_void,
__len: usize,
);
}
unsafe extern "C" {
pub fn strcasestr(
__big: *const ::std::os::raw::c_char,
__little: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strnstr(
__big: *const ::std::os::raw::c_char,
__little: *const ::std::os::raw::c_char,
__len: usize,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn strlcat(
__dst: *mut ::std::os::raw::c_char,
__source: *const ::std::os::raw::c_char,
__size: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strlcpy(
__dst: *mut ::std::os::raw::c_char,
__source: *const ::std::os::raw::c_char,
__size: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_ulong;
}
unsafe extern "C" {
pub fn strmode(__mode: ::std::os::raw::c_int, __bp: *mut ::std::os::raw::c_char);
}
unsafe extern "C" {
pub fn strsep(
__stringp: *mut *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn swab(
arg1: *const ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: isize,
);
}
unsafe extern "C" {
pub fn timingsafe_bcmp(
__b1: *const ::std::os::raw::c_void,
__b2: *const ::std::os::raw::c_void,
__len: usize,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strsignal_r(
__sig: ::std::os::raw::c_int,
__strsignalbuf: *mut ::std::os::raw::c_char,
__buflen: usize,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn bcmp(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn bcopy(
arg1: *const ::std::os::raw::c_void,
arg2: *mut ::std::os::raw::c_void,
arg3: usize,
);
}
unsafe extern "C" {
pub fn bzero(arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_ulong);
}
unsafe extern "C" {
pub fn index(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn rindex(
arg1: *const ::std::os::raw::c_char,
arg2: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
unsafe extern "C" {
pub fn ffs(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strcasecmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn strncasecmp(
arg1: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_ulong,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ffsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn ffsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn fls(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn flsl(arg1: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn flsll(arg1: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[non_exhaustive]
#[doc = " Copied from TensorProto::DataType\n Currently, Ort doesn't support complex64, complex128"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ONNXTensorElementDataType {
ONNX_TENSOR_ELEMENT_DATA_TYPE_UNDEFINED = 0,
ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT = 1,
ONNX_TENSOR_ELEMENT_DATA_TYPE_UINT8 = 2,
ONNX_TENSOR_ELEMENT_DATA_TYPE_INT8 = 3,
ONNX_TENSOR_ELEMENT_DATA_TYPE_UINT16 = 4,
ONNX_TENSOR_ELEMENT_DATA_TYPE_INT16 = 5,
ONNX_TENSOR_ELEMENT_DATA_TYPE_INT32 = 6,
ONNX_TENSOR_ELEMENT_DATA_TYPE_INT64 = 7,
ONNX_TENSOR_ELEMENT_DATA_TYPE_STRING = 8,
ONNX_TENSOR_ELEMENT_DATA_TYPE_BOOL = 9,
ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT16 = 10,
ONNX_TENSOR_ELEMENT_DATA_TYPE_DOUBLE = 11,
ONNX_TENSOR_ELEMENT_DATA_TYPE_UINT32 = 12,
ONNX_TENSOR_ELEMENT_DATA_TYPE_UINT64 = 13,
ONNX_TENSOR_ELEMENT_DATA_TYPE_COMPLEX64 = 14,
ONNX_TENSOR_ELEMENT_DATA_TYPE_COMPLEX128 = 15,
ONNX_TENSOR_ELEMENT_DATA_TYPE_BFLOAT16 = 16,
ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E4M3FN = 17,
ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E4M3FNUZ = 18,
ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E5M2 = 19,
ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT8E5M2FNUZ = 20,
ONNX_TENSOR_ELEMENT_DATA_TYPE_UINT4 = 21,
ONNX_TENSOR_ELEMENT_DATA_TYPE_INT4 = 22,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ONNXType {
ONNX_TYPE_UNKNOWN = 0,
ONNX_TYPE_TENSOR = 1,
ONNX_TYPE_SEQUENCE = 2,
ONNX_TYPE_MAP = 3,
ONNX_TYPE_OPAQUE = 4,
ONNX_TYPE_SPARSETENSOR = 5,
ONNX_TYPE_OPTIONAL = 6,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtSparseFormat {
ORT_SPARSE_UNDEFINED = 0,
ORT_SPARSE_COO = 1,
ORT_SPARSE_CSRC = 2,
ORT_SPARSE_BLOCK_SPARSE = 4,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtSparseIndicesFormat {
ORT_SPARSE_COO_INDICES = 0,
ORT_SPARSE_CSR_INNER_INDICES = 1,
ORT_SPARSE_CSR_OUTER_INDICES = 2,
ORT_SPARSE_BLOCK_SPARSE_INDICES = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = " \\brief Logging severity levels\n\n In typical API usage, specifying a logging severity level specifies the minimum severity of log messages to show."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtLoggingLevel {
#[doc = "< Verbose informational messages (least severe)."]
ORT_LOGGING_LEVEL_VERBOSE = 0,
#[doc = "< Informational messages."]
ORT_LOGGING_LEVEL_INFO = 1,
#[doc = "< Warning messages."]
ORT_LOGGING_LEVEL_WARNING = 2,
#[doc = "< Error messages."]
ORT_LOGGING_LEVEL_ERROR = 3,
#[doc = "< Fatal error messages (most severe)."]
ORT_LOGGING_LEVEL_FATAL = 4,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtErrorCode {
ORT_OK = 0,
ORT_FAIL = 1,
ORT_INVALID_ARGUMENT = 2,
ORT_NO_SUCHFILE = 3,
ORT_NO_MODEL = 4,
ORT_ENGINE_ERROR = 5,
ORT_RUNTIME_EXCEPTION = 6,
ORT_INVALID_PROTOBUF = 7,
ORT_MODEL_LOADED = 8,
ORT_NOT_IMPLEMENTED = 9,
ORT_INVALID_GRAPH = 10,
ORT_EP_FAIL = 11,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtOpAttrType {
ORT_OP_ATTR_UNDEFINED = 0,
ORT_OP_ATTR_INT = 1,
ORT_OP_ATTR_INTS = 2,
ORT_OP_ATTR_FLOAT = 3,
ORT_OP_ATTR_FLOATS = 4,
ORT_OP_ATTR_STRING = 5,
ORT_OP_ATTR_STRINGS = 6,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtEnv {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtStatus {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtMemoryInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtIoBinding {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtSession {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtValue {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtRunOptions {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTypeInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTensorTypeAndShapeInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtMapTypeInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtSequenceTypeInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOptionalTypeInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtSessionOptions {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCustomOpDomain {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtModelMetadata {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtThreadPoolParams {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtThreadingOptions {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtArenaCfg {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtPrepackedWeightsContainer {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTensorRTProviderOptionsV2 {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCUDAProviderOptionsV2 {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCANNProviderOptions {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtDnnlProviderOptions {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOp {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpAttr {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtLogger {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtShapeInferContext {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtLoraAdapter {
_unused: [u8; 0],
}
pub type OrtStatusPtr = *mut OrtStatus;
#[doc = " \\brief Memory allocation interface\n\n Structure of function pointers that defines a memory allocator. This can be created and filled in by the user for custom allocators.\n\n When an allocator is passed to any function, be sure that the allocator object is not destroyed until the last allocated object using it is freed."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtAllocator {
#[doc = "< Must be initialized to ORT_API_VERSION"]
pub version: u32,
#[doc = "< Returns a pointer to an allocated block of `size` bytes"]
pub Alloc: ::std::option::Option<
unsafe extern "C" fn(this_: *mut OrtAllocator, size: usize) -> *mut ::std::os::raw::c_void,
>,
#[doc = "< Free a block of memory previously allocated with OrtAllocator::Alloc"]
pub Free: ::std::option::Option<
unsafe extern "C" fn(this_: *mut OrtAllocator, p: *mut ::std::os::raw::c_void),
>,
#[doc = "< Return a pointer to an ::OrtMemoryInfo that describes this allocator"]
pub Info: ::std::option::Option<
unsafe extern "C" fn(this_: *const OrtAllocator) -> *const OrtMemoryInfo,
>,
#[doc = "< Returns a pointer to an allocated block of `size` bytes"]
pub Reserve: ::std::option::Option<
unsafe extern "C" fn(this_: *mut OrtAllocator, size: usize) -> *mut ::std::os::raw::c_void,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtAllocator"][::std::mem::size_of::<OrtAllocator>() - 40usize];
["Alignment of OrtAllocator"][::std::mem::align_of::<OrtAllocator>() - 8usize];
["Offset of field: OrtAllocator::version"]
[::std::mem::offset_of!(OrtAllocator, version) - 0usize];
["Offset of field: OrtAllocator::Alloc"][::std::mem::offset_of!(OrtAllocator, Alloc) - 8usize];
["Offset of field: OrtAllocator::Free"][::std::mem::offset_of!(OrtAllocator, Free) - 16usize];
["Offset of field: OrtAllocator::Info"][::std::mem::offset_of!(OrtAllocator, Info) - 24usize];
["Offset of field: OrtAllocator::Reserve"]
[::std::mem::offset_of!(OrtAllocator, Reserve) - 32usize];
};
pub type OrtLoggingFunction = ::std::option::Option<
unsafe extern "C" fn(
param: *mut ::std::os::raw::c_void,
severity: OrtLoggingLevel,
category: *const ::std::os::raw::c_char,
logid: *const ::std::os::raw::c_char,
code_location: *const ::std::os::raw::c_char,
message: *const ::std::os::raw::c_char,
),
>;
#[repr(u32)]
#[non_exhaustive]
#[doc = " \\brief Graph optimization level\n\n Refer to https://www.onnxruntime.ai/docs/performance/graph-optimizations.html#graph-optimization-levels\n for an in-depth understanding of the Graph Optimization Levels."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum GraphOptimizationLevel {
ORT_DISABLE_ALL = 0,
ORT_ENABLE_BASIC = 1,
ORT_ENABLE_EXTENDED = 2,
ORT_ENABLE_ALL = 99,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ExecutionMode {
ORT_SEQUENTIAL = 0,
ORT_PARALLEL = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = " \\brief Language projection identifiers\n /see OrtApi::SetLanguageProjection"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtLanguageProjection {
ORT_PROJECTION_C = 0,
ORT_PROJECTION_CPLUSPLUS = 1,
ORT_PROJECTION_CSHARP = 2,
ORT_PROJECTION_PYTHON = 3,
ORT_PROJECTION_JAVA = 4,
ORT_PROJECTION_WINML = 5,
ORT_PROJECTION_NODEJS = 6,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtKernelInfo {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtKernelContext {
_unused: [u8; 0],
}
#[repr(i32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtAllocatorType {
OrtInvalidAllocator = -1,
OrtDeviceAllocator = 0,
OrtArenaAllocator = 1,
}
impl OrtMemType {
pub const OrtMemTypeCPU: OrtMemType = OrtMemType::OrtMemTypeCPUOutput;
}
#[repr(i32)]
#[non_exhaustive]
#[doc = " \\brief Memory types for allocated memory, execution provider specific types should be extended in each provider."]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtMemType {
#[doc = "< Any CPU memory used by non-CPU execution provider"]
OrtMemTypeCPUInput = -2,
#[doc = "< CPU accessible memory outputted by non-CPU execution provider, i.e. CUDA_PINNED"]
OrtMemTypeCPUOutput = -1,
#[doc = "< The default allocator for execution provider"]
OrtMemTypeDefault = 0,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = " \\brief This mimics OrtDevice type constants so they can be returned in the API"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtMemoryInfoDeviceType {
OrtMemoryInfoDeviceType_CPU = 0,
OrtMemoryInfoDeviceType_GPU = 1,
OrtMemoryInfoDeviceType_FPGA = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = " \\brief Algorithm to use for cuDNN Convolution Op"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtCudnnConvAlgoSearch {
OrtCudnnConvAlgoSearchExhaustive = 0,
OrtCudnnConvAlgoSearchHeuristic = 1,
OrtCudnnConvAlgoSearchDefault = 2,
}
#[doc = " \\brief CUDA Provider Options\n\n \\see OrtApi::SessionOptionsAppendExecutionProvider_CUDA"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCUDAProviderOptions {
#[doc = " \\brief CUDA device Id\n Defaults to 0."]
pub device_id: ::std::os::raw::c_int,
#[doc = " \\brief CUDA Convolution algorithm search configuration.\n See enum OrtCudnnConvAlgoSearch for more details.\n Defaults to OrtCudnnConvAlgoSearchExhaustive."]
pub cudnn_conv_algo_search: OrtCudnnConvAlgoSearch,
#[doc = " \\brief CUDA memory limit (To use all possible memory pass in maximum size_t)\n Defaults to SIZE_MAX.\n \\note If a ::OrtArenaCfg has been applied, it will override this field"]
pub gpu_mem_limit: usize,
#[doc = " \\brief Strategy used to grow the memory arena\n 0 = kNextPowerOfTwo<br>\n 1 = kSameAsRequested<br>\n Defaults to 0.\n \\note If a ::OrtArenaCfg has been applied, it will override this field"]
pub arena_extend_strategy: ::std::os::raw::c_int,
#[doc = " \\brief Flag indicating if copying needs to take place on the same stream as the compute stream in the CUDA EP\n 0 = Use separate streams for copying and compute.\n 1 = Use the same stream for copying and compute.\n Defaults to 1.\n WARNING: Setting this to 0 may result in data races for some models.\n Please see issue #4829 for more details."]
pub do_copy_in_default_stream: ::std::os::raw::c_int,
#[doc = " \\brief Flag indicating if there is a user provided compute stream\n Defaults to 0."]
pub has_user_compute_stream: ::std::os::raw::c_int,
#[doc = " \\brief User provided compute stream.\n If provided, please set `has_user_compute_stream` to 1."]
pub user_compute_stream: *mut ::std::os::raw::c_void,
#[doc = " \\brief CUDA memory arena configuration parameters"]
pub default_memory_arena_cfg: *mut OrtArenaCfg,
#[doc = " \\brief Enable TunableOp for using.\n Set it to 1/0 to enable/disable TunableOp. Otherwise, it is disabled by default.\n This option can be overridden by environment variable ORT_CUDA_TUNABLE_OP_ENABLE."]
pub tunable_op_enable: ::std::os::raw::c_int,
#[doc = " \\brief Enable TunableOp for tuning.\n Set it to 1/0 to enable/disable TunableOp tuning. Otherwise, it is disabled by default.\n This option can be overridden by environment variable ORT_CUDA_TUNABLE_OP_TUNING_ENABLE."]
pub tunable_op_tuning_enable: ::std::os::raw::c_int,
#[doc = " \\brief Max tuning duration time limit for each instance of TunableOp.\n Defaults to 0 to disable the limit."]
pub tunable_op_max_tuning_duration_ms: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtCUDAProviderOptions"][::std::mem::size_of::<OrtCUDAProviderOptions>() - 64usize];
["Alignment of OrtCUDAProviderOptions"]
[::std::mem::align_of::<OrtCUDAProviderOptions>() - 8usize];
["Offset of field: OrtCUDAProviderOptions::device_id"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, device_id) - 0usize];
["Offset of field: OrtCUDAProviderOptions::cudnn_conv_algo_search"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, cudnn_conv_algo_search) - 4usize];
["Offset of field: OrtCUDAProviderOptions::gpu_mem_limit"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, gpu_mem_limit) - 8usize];
["Offset of field: OrtCUDAProviderOptions::arena_extend_strategy"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, arena_extend_strategy) - 16usize];
["Offset of field: OrtCUDAProviderOptions::do_copy_in_default_stream"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, do_copy_in_default_stream) - 20usize];
["Offset of field: OrtCUDAProviderOptions::has_user_compute_stream"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, has_user_compute_stream) - 24usize];
["Offset of field: OrtCUDAProviderOptions::user_compute_stream"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, user_compute_stream) - 32usize];
["Offset of field: OrtCUDAProviderOptions::default_memory_arena_cfg"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, default_memory_arena_cfg) - 40usize];
["Offset of field: OrtCUDAProviderOptions::tunable_op_enable"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, tunable_op_enable) - 48usize];
["Offset of field: OrtCUDAProviderOptions::tunable_op_tuning_enable"]
[::std::mem::offset_of!(OrtCUDAProviderOptions, tunable_op_tuning_enable) - 52usize];
["Offset of field: OrtCUDAProviderOptions::tunable_op_max_tuning_duration_ms"][::std::mem::offset_of!(
OrtCUDAProviderOptions,
tunable_op_max_tuning_duration_ms
) - 56usize];
};
#[doc = " \\brief ROCM Provider Options\n\n \\see OrtApi::SessionOptionsAppendExecutionProvider_ROCM"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtROCMProviderOptions {
#[doc = " \\brief ROCM device Id\n Defaults to 0."]
pub device_id: ::std::os::raw::c_int,
#[doc = " \\brief ROCM MIOpen Convolution algorithm exaustive search option.\n Defaults to 0 (false)."]
pub miopen_conv_exhaustive_search: ::std::os::raw::c_int,
#[doc = " \\brief ROCM memory limit (To use all possible memory pass in maximum size_t)\n Defaults to SIZE_MAX.\n \\note If a ::OrtArenaCfg has been applied, it will override this field"]
pub gpu_mem_limit: usize,
#[doc = " \\brief Strategy used to grow the memory arena\n 0 = kNextPowerOfTwo<br>\n 1 = kSameAsRequested<br>\n Defaults to 0.\n \\note If a ::OrtArenaCfg has been applied, it will override this field"]
pub arena_extend_strategy: ::std::os::raw::c_int,
#[doc = " \\brief Flag indicating if copying needs to take place on the same stream as the compute stream in the ROCM EP\n 0 = Use separate streams for copying and compute.\n 1 = Use the same stream for copying and compute.\n Defaults to 1.\n WARNING: Setting this to 0 may result in data races for some models.\n Please see issue #4829 for more details."]
pub do_copy_in_default_stream: ::std::os::raw::c_int,
#[doc = " \\brief Flag indicating if there is a user provided compute stream\n Defaults to 0."]
pub has_user_compute_stream: ::std::os::raw::c_int,
#[doc = " \\brief User provided compute stream.\n If provided, please set `has_user_compute_stream` to 1."]
pub user_compute_stream: *mut ::std::os::raw::c_void,
#[doc = " \\brief ROCM memory arena configuration parameters"]
pub default_memory_arena_cfg: *mut OrtArenaCfg,
pub enable_hip_graph: ::std::os::raw::c_int,
#[doc = " \\brief Enable TunableOp for using.\n Set it to 1/0 to enable/disable TunableOp. Otherwise, it is disabled by default.\n This option can be overridden by environment variable ORT_ROCM_TUNABLE_OP_ENABLE."]
pub tunable_op_enable: ::std::os::raw::c_int,
#[doc = " \\brief Enable TunableOp for tuning.\n Set it to 1/0 to enable/disable TunableOp tuning. Otherwise, it is disabled by default.\n This option can be overridden by environment variable ORT_ROCM_TUNABLE_OP_TUNING_ENABLE."]
pub tunable_op_tuning_enable: ::std::os::raw::c_int,
#[doc = " \\brief Max tuning duration time limit for each instance of TunableOp.\n Defaults to 0 to disable the limit."]
pub tunable_op_max_tuning_duration_ms: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtROCMProviderOptions"][::std::mem::size_of::<OrtROCMProviderOptions>() - 64usize];
["Alignment of OrtROCMProviderOptions"]
[::std::mem::align_of::<OrtROCMProviderOptions>() - 8usize];
["Offset of field: OrtROCMProviderOptions::device_id"]
[::std::mem::offset_of!(OrtROCMProviderOptions, device_id) - 0usize];
["Offset of field: OrtROCMProviderOptions::miopen_conv_exhaustive_search"]
[::std::mem::offset_of!(OrtROCMProviderOptions, miopen_conv_exhaustive_search) - 4usize];
["Offset of field: OrtROCMProviderOptions::gpu_mem_limit"]
[::std::mem::offset_of!(OrtROCMProviderOptions, gpu_mem_limit) - 8usize];
["Offset of field: OrtROCMProviderOptions::arena_extend_strategy"]
[::std::mem::offset_of!(OrtROCMProviderOptions, arena_extend_strategy) - 16usize];
["Offset of field: OrtROCMProviderOptions::do_copy_in_default_stream"]
[::std::mem::offset_of!(OrtROCMProviderOptions, do_copy_in_default_stream) - 20usize];
["Offset of field: OrtROCMProviderOptions::has_user_compute_stream"]
[::std::mem::offset_of!(OrtROCMProviderOptions, has_user_compute_stream) - 24usize];
["Offset of field: OrtROCMProviderOptions::user_compute_stream"]
[::std::mem::offset_of!(OrtROCMProviderOptions, user_compute_stream) - 32usize];
["Offset of field: OrtROCMProviderOptions::default_memory_arena_cfg"]
[::std::mem::offset_of!(OrtROCMProviderOptions, default_memory_arena_cfg) - 40usize];
["Offset of field: OrtROCMProviderOptions::enable_hip_graph"]
[::std::mem::offset_of!(OrtROCMProviderOptions, enable_hip_graph) - 48usize];
["Offset of field: OrtROCMProviderOptions::tunable_op_enable"]
[::std::mem::offset_of!(OrtROCMProviderOptions, tunable_op_enable) - 52usize];
["Offset of field: OrtROCMProviderOptions::tunable_op_tuning_enable"]
[::std::mem::offset_of!(OrtROCMProviderOptions, tunable_op_tuning_enable) - 56usize];
["Offset of field: OrtROCMProviderOptions::tunable_op_max_tuning_duration_ms"][::std::mem::offset_of!(
OrtROCMProviderOptions,
tunable_op_max_tuning_duration_ms
) - 60usize];
};
#[doc = " \\brief TensorRT Provider Options\n\n \\see OrtApi::SessionOptionsAppendExecutionProvider_TensorRT"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTensorRTProviderOptions {
#[doc = "< CUDA device id (0 = default device)"]
pub device_id: ::std::os::raw::c_int,
pub has_user_compute_stream: ::std::os::raw::c_int,
pub user_compute_stream: *mut ::std::os::raw::c_void,
pub trt_max_partition_iterations: ::std::os::raw::c_int,
pub trt_min_subgraph_size: ::std::os::raw::c_int,
pub trt_max_workspace_size: usize,
pub trt_fp16_enable: ::std::os::raw::c_int,
pub trt_int8_enable: ::std::os::raw::c_int,
pub trt_int8_calibration_table_name: *const ::std::os::raw::c_char,
pub trt_int8_use_native_calibration_table: ::std::os::raw::c_int,
pub trt_dla_enable: ::std::os::raw::c_int,
pub trt_dla_core: ::std::os::raw::c_int,
pub trt_dump_subgraphs: ::std::os::raw::c_int,
pub trt_engine_cache_enable: ::std::os::raw::c_int,
pub trt_engine_cache_path: *const ::std::os::raw::c_char,
pub trt_engine_decryption_enable: ::std::os::raw::c_int,
pub trt_engine_decryption_lib_path: *const ::std::os::raw::c_char,
pub trt_force_sequential_engine_build: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtTensorRTProviderOptions"]
[::std::mem::size_of::<OrtTensorRTProviderOptions>() - 104usize];
["Alignment of OrtTensorRTProviderOptions"]
[::std::mem::align_of::<OrtTensorRTProviderOptions>() - 8usize];
["Offset of field: OrtTensorRTProviderOptions::device_id"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, device_id) - 0usize];
["Offset of field: OrtTensorRTProviderOptions::has_user_compute_stream"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, has_user_compute_stream) - 4usize];
["Offset of field: OrtTensorRTProviderOptions::user_compute_stream"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, user_compute_stream) - 8usize];
["Offset of field: OrtTensorRTProviderOptions::trt_max_partition_iterations"][::std::mem::offset_of!(
OrtTensorRTProviderOptions,
trt_max_partition_iterations
) - 16usize];
["Offset of field: OrtTensorRTProviderOptions::trt_min_subgraph_size"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_min_subgraph_size) - 20usize];
["Offset of field: OrtTensorRTProviderOptions::trt_max_workspace_size"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_max_workspace_size) - 24usize];
["Offset of field: OrtTensorRTProviderOptions::trt_fp16_enable"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_fp16_enable) - 32usize];
["Offset of field: OrtTensorRTProviderOptions::trt_int8_enable"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_int8_enable) - 36usize];
["Offset of field: OrtTensorRTProviderOptions::trt_int8_calibration_table_name"][::std::mem::offset_of!(
OrtTensorRTProviderOptions,
trt_int8_calibration_table_name
) - 40usize];
["Offset of field: OrtTensorRTProviderOptions::trt_int8_use_native_calibration_table"][::std::mem::offset_of!(
OrtTensorRTProviderOptions,
trt_int8_use_native_calibration_table
)
- 48usize];
["Offset of field: OrtTensorRTProviderOptions::trt_dla_enable"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_dla_enable) - 52usize];
["Offset of field: OrtTensorRTProviderOptions::trt_dla_core"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_dla_core) - 56usize];
["Offset of field: OrtTensorRTProviderOptions::trt_dump_subgraphs"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_dump_subgraphs) - 60usize];
["Offset of field: OrtTensorRTProviderOptions::trt_engine_cache_enable"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_engine_cache_enable) - 64usize];
["Offset of field: OrtTensorRTProviderOptions::trt_engine_cache_path"]
[::std::mem::offset_of!(OrtTensorRTProviderOptions, trt_engine_cache_path) - 72usize];
["Offset of field: OrtTensorRTProviderOptions::trt_engine_decryption_enable"][::std::mem::offset_of!(
OrtTensorRTProviderOptions,
trt_engine_decryption_enable
) - 80usize];
["Offset of field: OrtTensorRTProviderOptions::trt_engine_decryption_lib_path"][::std::mem::offset_of!(
OrtTensorRTProviderOptions,
trt_engine_decryption_lib_path
) - 88usize];
["Offset of field: OrtTensorRTProviderOptions::trt_force_sequential_engine_build"][::std::mem::offset_of!(
OrtTensorRTProviderOptions,
trt_force_sequential_engine_build
) - 96usize];
};
#[doc = " \\brief MIGraphX Provider Options\n\n \\see OrtApi::SessionOptionsAppendExecutionProvider_MIGraphX"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtMIGraphXProviderOptions {
pub device_id: ::std::os::raw::c_int,
pub migraphx_fp16_enable: ::std::os::raw::c_int,
pub migraphx_int8_enable: ::std::os::raw::c_int,
pub migraphx_use_native_calibration_table: ::std::os::raw::c_int,
pub migraphx_int8_calibration_table_name: *const ::std::os::raw::c_char,
pub migraphx_save_compiled_model: ::std::os::raw::c_int,
pub migraphx_save_model_path: *const ::std::os::raw::c_char,
pub migraphx_load_compiled_model: ::std::os::raw::c_int,
pub migraphx_load_model_path: *const ::std::os::raw::c_char,
pub migraphx_exhaustive_tune: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtMIGraphXProviderOptions"]
[::std::mem::size_of::<OrtMIGraphXProviderOptions>() - 64usize];
["Alignment of OrtMIGraphXProviderOptions"]
[::std::mem::align_of::<OrtMIGraphXProviderOptions>() - 8usize];
["Offset of field: OrtMIGraphXProviderOptions::device_id"]
[::std::mem::offset_of!(OrtMIGraphXProviderOptions, device_id) - 0usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_fp16_enable"]
[::std::mem::offset_of!(OrtMIGraphXProviderOptions, migraphx_fp16_enable) - 4usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_int8_enable"]
[::std::mem::offset_of!(OrtMIGraphXProviderOptions, migraphx_int8_enable) - 8usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_use_native_calibration_table"][::std::mem::offset_of!(
OrtMIGraphXProviderOptions,
migraphx_use_native_calibration_table
)
- 12usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_int8_calibration_table_name"][::std::mem::offset_of!(
OrtMIGraphXProviderOptions,
migraphx_int8_calibration_table_name
)
- 16usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_save_compiled_model"][::std::mem::offset_of!(
OrtMIGraphXProviderOptions,
migraphx_save_compiled_model
) - 24usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_save_model_path"]
[::std::mem::offset_of!(OrtMIGraphXProviderOptions, migraphx_save_model_path) - 32usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_load_compiled_model"][::std::mem::offset_of!(
OrtMIGraphXProviderOptions,
migraphx_load_compiled_model
) - 40usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_load_model_path"]
[::std::mem::offset_of!(OrtMIGraphXProviderOptions, migraphx_load_model_path) - 48usize];
["Offset of field: OrtMIGraphXProviderOptions::migraphx_exhaustive_tune"]
[::std::mem::offset_of!(OrtMIGraphXProviderOptions, migraphx_exhaustive_tune) - 56usize];
};
#[doc = " \\brief OpenVINO Provider Options\n\n \\see OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtOpenVINOProviderOptions {
#[doc = " \\brief Device type string\n\n Valid settings are one of: \"CPU_FP32\", \"CPU_FP16\", \"GPU_FP32\", \"GPU_FP16\""]
pub device_type: *const ::std::os::raw::c_char,
pub enable_npu_fast_compile: ::std::os::raw::c_uchar,
pub device_id: *const ::std::os::raw::c_char,
#[doc = "< 0 = Use default number of threads"]
pub num_of_threads: usize,
pub cache_dir: *const ::std::os::raw::c_char,
pub context: *mut ::std::os::raw::c_void,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_opencl_throttling: ::std::os::raw::c_uchar,
#[doc = "< 0 = disabled, nonzero = enabled"]
pub enable_dynamic_shapes: ::std::os::raw::c_uchar,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtOpenVINOProviderOptions"]
[::std::mem::size_of::<OrtOpenVINOProviderOptions>() - 56usize];
["Alignment of OrtOpenVINOProviderOptions"]
[::std::mem::align_of::<OrtOpenVINOProviderOptions>() - 8usize];
["Offset of field: OrtOpenVINOProviderOptions::device_type"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, device_type) - 0usize];
["Offset of field: OrtOpenVINOProviderOptions::enable_npu_fast_compile"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, enable_npu_fast_compile) - 8usize];
["Offset of field: OrtOpenVINOProviderOptions::device_id"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, device_id) - 16usize];
["Offset of field: OrtOpenVINOProviderOptions::num_of_threads"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, num_of_threads) - 24usize];
["Offset of field: OrtOpenVINOProviderOptions::cache_dir"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, cache_dir) - 32usize];
["Offset of field: OrtOpenVINOProviderOptions::context"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, context) - 40usize];
["Offset of field: OrtOpenVINOProviderOptions::enable_opencl_throttling"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, enable_opencl_throttling) - 48usize];
["Offset of field: OrtOpenVINOProviderOptions::enable_dynamic_shapes"]
[::std::mem::offset_of!(OrtOpenVINOProviderOptions, enable_dynamic_shapes) - 49usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtTrainingApi {
_unused: [u8; 0],
}
#[doc = " \\brief The helper interface to get the right version of OrtApi\n\n Get a pointer to this structure through ::OrtGetApiBase"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtApiBase {
#[doc = " \\brief Get a pointer to the requested version of the ::OrtApi\n\n \\param[in] version Must be ::ORT_API_VERSION\n \\return The ::OrtApi for the version requested, nullptr will be returned if this version is unsupported, for example when using a runtime\n older than the version created with this header file.\n\n One can call GetVersionString() to get the version of the Onnxruntime library for logging\n and error reporting purposes."]
pub GetApi: ::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtApi>,
#[doc = " \\brief Returns a null terminated string of the version of the Onnxruntime library (eg: \"1.8.1\")\n\n \\return UTF-8 encoded version string. Do not deallocate the returned buffer."]
pub GetVersionString:
::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtApiBase"][::std::mem::size_of::<OrtApiBase>() - 16usize];
["Alignment of OrtApiBase"][::std::mem::align_of::<OrtApiBase>() - 8usize];
["Offset of field: OrtApiBase::GetApi"][::std::mem::offset_of!(OrtApiBase, GetApi) - 0usize];
["Offset of field: OrtApiBase::GetVersionString"]
[::std::mem::offset_of!(OrtApiBase, GetVersionString) - 8usize];
};
unsafe extern "C" {
#[doc = " \\brief The Onnxruntime library's entry point to access the C API\n\n Call this to get the a pointer to an ::OrtApiBase"]
pub fn OrtGetApiBase() -> *const OrtApiBase;
}
#[doc = " \\brief Thread work loop function\n\n Onnxruntime will provide the working loop on custom thread creation\n Argument is an onnxruntime built-in type which will be provided when thread pool calls OrtCustomCreateThreadFn"]
pub type OrtThreadWorkerFn =
::std::option::Option<unsafe extern "C" fn(ort_worker_fn_param: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCustomHandleType {
pub __place_holder: ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtCustomHandleType"][::std::mem::size_of::<OrtCustomHandleType>() - 1usize];
["Alignment of OrtCustomHandleType"][::std::mem::align_of::<OrtCustomHandleType>() - 1usize];
["Offset of field: OrtCustomHandleType::__place_holder"]
[::std::mem::offset_of!(OrtCustomHandleType, __place_holder) - 0usize];
};
pub type OrtCustomThreadHandle = *const OrtCustomHandleType;
#[doc = " \\brief Ort custom thread creation function\n\n The function should return a thread handle to be used in onnxruntime thread pools\n Onnxruntime will throw exception on return value of nullptr or 0, indicating that the function failed to create a thread"]
pub type OrtCustomCreateThreadFn = ::std::option::Option<
unsafe extern "C" fn(
ort_custom_thread_creation_options: *mut ::std::os::raw::c_void,
ort_thread_worker_fn: OrtThreadWorkerFn,
ort_worker_fn_param: *mut ::std::os::raw::c_void,
) -> OrtCustomThreadHandle,
>;
#[doc = " \\brief Custom thread join function\n\n Onnxruntime thread pool destructor will call the function to join a custom thread.\n Argument ort_custom_thread_handle is the value returned by OrtCustomCreateThreadFn"]
pub type OrtCustomJoinThreadFn =
::std::option::Option<unsafe extern "C" fn(ort_custom_thread_handle: OrtCustomThreadHandle)>;
pub type RegisterCustomOpsFn = ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions, api: *const OrtApiBase) -> *mut OrtStatus,
>;
#[doc = " \\brief Callback function for RunAsync\n\n \\param[in] user_data User specific data that passed back to the callback\n \\param[out] outputs On succeed, outputs host inference results, on error, the value will be nullptr\n \\param[out] num_outputs Number of outputs, on error, the value will be zero\n \\param[out] status On error, status will provide details"]
pub type RunAsyncCallbackFn = ::std::option::Option<
unsafe extern "C" fn(
user_data: *mut ::std::os::raw::c_void,
outputs: *mut *mut OrtValue,
num_outputs: usize,
status: OrtStatusPtr,
),
>;
#[doc = " \\brief The C API\n\n All C API functions are defined inside this structure as pointers to functions.\n Call OrtApiBase::GetApi to get a pointer to it\n\n \\nosubgrouping"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtApi {
#[doc = " \\brief Create an OrtStatus from a null terminated string\n\n \\param[in] code\n \\param[in] msg A null-terminated string. Its contents will be copied.\n \\return A new OrtStatus object, must be destroyed with OrtApi::ReleaseStatus"]
pub CreateStatus: ::std::option::Option<
unsafe extern "C" fn(
code: OrtErrorCode,
msg: *const ::std::os::raw::c_char,
) -> *mut OrtStatus,
>,
#[doc = " \\brief Get OrtErrorCode from OrtStatus\n\n \\param[in] status\n \\return OrtErrorCode that \\p status was created with"]
pub GetErrorCode:
::std::option::Option<unsafe extern "C" fn(status: *const OrtStatus) -> OrtErrorCode>,
#[doc = " \\brief Get error string from OrtStatus\n\n \\param[in] status\n \\return The error message inside the `status`. Do not free the returned value."]
pub GetErrorMessage: ::std::option::Option<
unsafe extern "C" fn(status: *const OrtStatus) -> *const ::std::os::raw::c_char,
>,
pub CreateEnv: ::std::option::Option<
unsafe extern "C" fn(
log_severity_level: OrtLoggingLevel,
logid: *const ::std::os::raw::c_char,
out: *mut *mut OrtEnv,
) -> OrtStatusPtr,
>,
pub CreateEnvWithCustomLogger: ::std::option::Option<
unsafe extern "C" fn(
logging_function: OrtLoggingFunction,
logger_param: *mut ::std::os::raw::c_void,
log_severity_level: OrtLoggingLevel,
logid: *const ::std::os::raw::c_char,
out: *mut *mut OrtEnv,
) -> OrtStatusPtr,
>,
pub EnableTelemetryEvents:
::std::option::Option<unsafe extern "C" fn(env: *const OrtEnv) -> OrtStatusPtr>,
pub DisableTelemetryEvents:
::std::option::Option<unsafe extern "C" fn(env: *const OrtEnv) -> OrtStatusPtr>,
pub CreateSession: ::std::option::Option<
unsafe extern "C" fn(
env: *const OrtEnv,
model_path: *const ::std::os::raw::c_char,
options: *const OrtSessionOptions,
out: *mut *mut OrtSession,
) -> OrtStatusPtr,
>,
pub CreateSessionFromArray: ::std::option::Option<
unsafe extern "C" fn(
env: *const OrtEnv,
model_data: *const ::std::os::raw::c_void,
model_data_length: usize,
options: *const OrtSessionOptions,
out: *mut *mut OrtSession,
) -> OrtStatusPtr,
>,
pub Run: ::std::option::Option<
unsafe extern "C" fn(
session: *mut OrtSession,
run_options: *const OrtRunOptions,
input_names: *const *const ::std::os::raw::c_char,
inputs: *const *const OrtValue,
input_len: usize,
output_names: *const *const ::std::os::raw::c_char,
output_names_len: usize,
outputs: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub CreateSessionOptions: ::std::option::Option<
unsafe extern "C" fn(options: *mut *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub SetOptimizedModelFilePath: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
optimized_model_filepath: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub CloneSessionOptions: ::std::option::Option<
unsafe extern "C" fn(
in_options: *const OrtSessionOptions,
out_options: *mut *mut OrtSessionOptions,
) -> OrtStatusPtr,
>,
pub SetSessionExecutionMode: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
execution_mode: ExecutionMode,
) -> OrtStatusPtr,
>,
pub EnableProfiling: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
profile_file_prefix: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub DisableProfiling: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub EnableMemPattern: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub DisableMemPattern: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub EnableCpuMemArena: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub DisableCpuMemArena: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub SetSessionLogId: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
logid: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub SetSessionLogVerbosityLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
session_log_verbosity_level: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub SetSessionLogSeverityLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
session_log_severity_level: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub SetSessionGraphOptimizationLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
graph_optimization_level: GraphOptimizationLevel,
) -> OrtStatusPtr,
>,
pub SetIntraOpNumThreads: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
intra_op_num_threads: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub SetInterOpNumThreads: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
inter_op_num_threads: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub CreateCustomOpDomain: ::std::option::Option<
unsafe extern "C" fn(
domain: *const ::std::os::raw::c_char,
out: *mut *mut OrtCustomOpDomain,
) -> OrtStatusPtr,
>,
pub CustomOpDomain_Add: ::std::option::Option<
unsafe extern "C" fn(
custom_op_domain: *mut OrtCustomOpDomain,
op: *const OrtCustomOp,
) -> OrtStatusPtr,
>,
pub AddCustomOpDomain: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
custom_op_domain: *mut OrtCustomOpDomain,
) -> OrtStatusPtr,
>,
pub RegisterCustomOpsLibrary: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
library_path: *const ::std::os::raw::c_char,
library_handle: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub SessionGetInputCount: ::std::option::Option<
unsafe extern "C" fn(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr,
>,
pub SessionGetOutputCount: ::std::option::Option<
unsafe extern "C" fn(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr,
>,
pub SessionGetOverridableInitializerCount: ::std::option::Option<
unsafe extern "C" fn(session: *const OrtSession, out: *mut usize) -> OrtStatusPtr,
>,
pub SessionGetInputTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
index: usize,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub SessionGetOutputTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
index: usize,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub SessionGetOverridableInitializerTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
index: usize,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub SessionGetInputName: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
index: usize,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub SessionGetOutputName: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
index: usize,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub SessionGetOverridableInitializerName: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
index: usize,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub CreateRunOptions:
::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtRunOptions) -> OrtStatusPtr>,
pub RunOptionsSetRunLogVerbosityLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtRunOptions,
log_verbosity_level: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub RunOptionsSetRunLogSeverityLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtRunOptions,
log_severity_level: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub RunOptionsSetRunTag: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtRunOptions,
run_tag: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub RunOptionsGetRunLogVerbosityLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *const OrtRunOptions,
log_verbosity_level: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub RunOptionsGetRunLogSeverityLevel: ::std::option::Option<
unsafe extern "C" fn(
options: *const OrtRunOptions,
log_severity_level: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub RunOptionsGetRunTag: ::std::option::Option<
unsafe extern "C" fn(
options: *const OrtRunOptions,
run_tag: *mut *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub RunOptionsSetTerminate:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtRunOptions) -> OrtStatusPtr>,
pub RunOptionsUnsetTerminate:
::std::option::Option<unsafe extern "C" fn(options: *mut OrtRunOptions) -> OrtStatusPtr>,
pub CreateTensorAsOrtValue: ::std::option::Option<
unsafe extern "C" fn(
allocator: *mut OrtAllocator,
shape: *const i64,
shape_len: usize,
type_: ONNXTensorElementDataType,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub CreateTensorWithDataAsOrtValue: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtMemoryInfo,
p_data: *mut ::std::os::raw::c_void,
p_data_len: usize,
shape: *const i64,
shape_len: usize,
type_: ONNXTensorElementDataType,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub IsTensor: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
out: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub GetTensorMutableData: ::std::option::Option<
unsafe extern "C" fn(
value: *mut OrtValue,
out: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub FillStringTensor: ::std::option::Option<
unsafe extern "C" fn(
value: *mut OrtValue,
s: *const *const ::std::os::raw::c_char,
s_len: usize,
) -> OrtStatusPtr,
>,
pub GetStringTensorDataLength: ::std::option::Option<
unsafe extern "C" fn(value: *const OrtValue, len: *mut usize) -> OrtStatusPtr,
>,
pub GetStringTensorContent: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
s: *mut ::std::os::raw::c_void,
s_len: usize,
offsets: *mut usize,
offsets_len: usize,
) -> OrtStatusPtr,
>,
pub CastTypeInfoToTensorInfo: ::std::option::Option<
unsafe extern "C" fn(
type_info: *const OrtTypeInfo,
out: *mut *const OrtTensorTypeAndShapeInfo,
) -> OrtStatusPtr,
>,
pub GetOnnxTypeFromTypeInfo: ::std::option::Option<
unsafe extern "C" fn(type_info: *const OrtTypeInfo, out: *mut ONNXType) -> OrtStatusPtr,
>,
pub CreateTensorTypeAndShapeInfo: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtTensorTypeAndShapeInfo) -> OrtStatusPtr,
>,
pub SetTensorElementType: ::std::option::Option<
unsafe extern "C" fn(
info: *mut OrtTensorTypeAndShapeInfo,
type_: ONNXTensorElementDataType,
) -> OrtStatusPtr,
>,
pub SetDimensions: ::std::option::Option<
unsafe extern "C" fn(
info: *mut OrtTensorTypeAndShapeInfo,
dim_values: *const i64,
dim_count: usize,
) -> OrtStatusPtr,
>,
pub GetTensorElementType: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtTensorTypeAndShapeInfo,
out: *mut ONNXTensorElementDataType,
) -> OrtStatusPtr,
>,
pub GetDimensionsCount: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtTensorTypeAndShapeInfo,
out: *mut usize,
) -> OrtStatusPtr,
>,
pub GetDimensions: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtTensorTypeAndShapeInfo,
dim_values: *mut i64,
dim_values_length: usize,
) -> OrtStatusPtr,
>,
pub GetSymbolicDimensions: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtTensorTypeAndShapeInfo,
dim_params: *mut *const ::std::os::raw::c_char,
dim_params_length: usize,
) -> OrtStatusPtr,
>,
pub GetTensorShapeElementCount: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtTensorTypeAndShapeInfo,
out: *mut usize,
) -> OrtStatusPtr,
>,
pub GetTensorTypeAndShape: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
out: *mut *mut OrtTensorTypeAndShapeInfo,
) -> OrtStatusPtr,
>,
pub GetTypeInfo: ::std::option::Option<
unsafe extern "C" fn(value: *const OrtValue, out: *mut *mut OrtTypeInfo) -> OrtStatusPtr,
>,
pub GetValueType: ::std::option::Option<
unsafe extern "C" fn(value: *const OrtValue, out: *mut ONNXType) -> OrtStatusPtr,
>,
pub CreateMemoryInfo: ::std::option::Option<
unsafe extern "C" fn(
name: *const ::std::os::raw::c_char,
type_: OrtAllocatorType,
id: ::std::os::raw::c_int,
mem_type: OrtMemType,
out: *mut *mut OrtMemoryInfo,
) -> OrtStatusPtr,
>,
pub CreateCpuMemoryInfo: ::std::option::Option<
unsafe extern "C" fn(
type_: OrtAllocatorType,
mem_type: OrtMemType,
out: *mut *mut OrtMemoryInfo,
) -> OrtStatusPtr,
>,
pub CompareMemoryInfo: ::std::option::Option<
unsafe extern "C" fn(
info1: *const OrtMemoryInfo,
info2: *const OrtMemoryInfo,
out: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub MemoryInfoGetName: ::std::option::Option<
unsafe extern "C" fn(
ptr: *const OrtMemoryInfo,
out: *mut *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub MemoryInfoGetId: ::std::option::Option<
unsafe extern "C" fn(
ptr: *const OrtMemoryInfo,
out: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub MemoryInfoGetMemType: ::std::option::Option<
unsafe extern "C" fn(ptr: *const OrtMemoryInfo, out: *mut OrtMemType) -> OrtStatusPtr,
>,
pub MemoryInfoGetType: ::std::option::Option<
unsafe extern "C" fn(ptr: *const OrtMemoryInfo, out: *mut OrtAllocatorType) -> OrtStatusPtr,
>,
pub AllocatorAlloc: ::std::option::Option<
unsafe extern "C" fn(
ort_allocator: *mut OrtAllocator,
size: usize,
out: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub AllocatorFree: ::std::option::Option<
unsafe extern "C" fn(
ort_allocator: *mut OrtAllocator,
p: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub AllocatorGetInfo: ::std::option::Option<
unsafe extern "C" fn(
ort_allocator: *const OrtAllocator,
out: *mut *const OrtMemoryInfo,
) -> OrtStatusPtr,
>,
pub GetAllocatorWithDefaultOptions:
::std::option::Option<unsafe extern "C" fn(out: *mut *mut OrtAllocator) -> OrtStatusPtr>,
pub AddFreeDimensionOverride: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
dim_denotation: *const ::std::os::raw::c_char,
dim_value: i64,
) -> OrtStatusPtr,
>,
pub GetValue: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
index: ::std::os::raw::c_int,
allocator: *mut OrtAllocator,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub GetValueCount: ::std::option::Option<
unsafe extern "C" fn(value: *const OrtValue, out: *mut usize) -> OrtStatusPtr,
>,
pub CreateValue: ::std::option::Option<
unsafe extern "C" fn(
in_: *const *const OrtValue,
num_values: usize,
value_type: ONNXType,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub CreateOpaqueValue: ::std::option::Option<
unsafe extern "C" fn(
domain_name: *const ::std::os::raw::c_char,
type_name: *const ::std::os::raw::c_char,
data_container: *const ::std::os::raw::c_void,
data_container_size: usize,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub GetOpaqueValue: ::std::option::Option<
unsafe extern "C" fn(
domain_name: *const ::std::os::raw::c_char,
type_name: *const ::std::os::raw::c_char,
in_: *const OrtValue,
data_container: *mut ::std::os::raw::c_void,
data_container_size: usize,
) -> OrtStatusPtr,
>,
pub KernelInfoGetAttribute_float: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
name: *const ::std::os::raw::c_char,
out: *mut f32,
) -> OrtStatusPtr,
>,
pub KernelInfoGetAttribute_int64: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
name: *const ::std::os::raw::c_char,
out: *mut i64,
) -> OrtStatusPtr,
>,
pub KernelInfoGetAttribute_string: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
name: *const ::std::os::raw::c_char,
out: *mut ::std::os::raw::c_char,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub KernelContext_GetInputCount: ::std::option::Option<
unsafe extern "C" fn(context: *const OrtKernelContext, out: *mut usize) -> OrtStatusPtr,
>,
pub KernelContext_GetOutputCount: ::std::option::Option<
unsafe extern "C" fn(context: *const OrtKernelContext, out: *mut usize) -> OrtStatusPtr,
>,
pub KernelContext_GetInput: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
index: usize,
out: *mut *const OrtValue,
) -> OrtStatusPtr,
>,
pub KernelContext_GetOutput: ::std::option::Option<
unsafe extern "C" fn(
context: *mut OrtKernelContext,
index: usize,
dim_values: *const i64,
dim_count: usize,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub ReleaseEnv: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtEnv)>,
pub ReleaseStatus: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtStatus)>,
pub ReleaseMemoryInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtMemoryInfo)>,
pub ReleaseSession: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtSession)>,
pub ReleaseValue: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtValue)>,
pub ReleaseRunOptions: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtRunOptions)>,
pub ReleaseTypeInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtTypeInfo)>,
pub ReleaseTensorTypeAndShapeInfo:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtTensorTypeAndShapeInfo)>,
pub ReleaseSessionOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtSessionOptions)>,
pub ReleaseCustomOpDomain:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtCustomOpDomain)>,
pub GetDenotationFromTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
type_info: *const OrtTypeInfo,
denotation: *mut *const ::std::os::raw::c_char,
len: *mut usize,
) -> OrtStatusPtr,
>,
pub CastTypeInfoToMapTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
type_info: *const OrtTypeInfo,
out: *mut *const OrtMapTypeInfo,
) -> OrtStatusPtr,
>,
pub CastTypeInfoToSequenceTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
type_info: *const OrtTypeInfo,
out: *mut *const OrtSequenceTypeInfo,
) -> OrtStatusPtr,
>,
pub GetMapKeyType: ::std::option::Option<
unsafe extern "C" fn(
map_type_info: *const OrtMapTypeInfo,
out: *mut ONNXTensorElementDataType,
) -> OrtStatusPtr,
>,
pub GetMapValueType: ::std::option::Option<
unsafe extern "C" fn(
map_type_info: *const OrtMapTypeInfo,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub GetSequenceElementType: ::std::option::Option<
unsafe extern "C" fn(
sequence_type_info: *const OrtSequenceTypeInfo,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub ReleaseMapTypeInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtMapTypeInfo)>,
pub ReleaseSequenceTypeInfo:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtSequenceTypeInfo)>,
pub SessionEndProfiling: ::std::option::Option<
unsafe extern "C" fn(
session: *mut OrtSession,
allocator: *mut OrtAllocator,
out: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub SessionGetModelMetadata: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
out: *mut *mut OrtModelMetadata,
) -> OrtStatusPtr,
>,
pub ModelMetadataGetProducerName: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub ModelMetadataGetGraphName: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub ModelMetadataGetDomain: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub ModelMetadataGetDescription: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub ModelMetadataLookupCustomMetadataMap: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
key: *const ::std::os::raw::c_char,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub ModelMetadataGetVersion: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
value: *mut i64,
) -> OrtStatusPtr,
>,
pub ReleaseModelMetadata:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtModelMetadata)>,
pub CreateEnvWithGlobalThreadPools: ::std::option::Option<
unsafe extern "C" fn(
log_severity_level: OrtLoggingLevel,
logid: *const ::std::os::raw::c_char,
tp_options: *const OrtThreadingOptions,
out: *mut *mut OrtEnv,
) -> OrtStatusPtr,
>,
pub DisablePerSessionThreads: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub CreateThreadingOptions: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtThreadingOptions) -> OrtStatusPtr,
>,
pub ReleaseThreadingOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtThreadingOptions)>,
pub ModelMetadataGetCustomMetadataMapKeys: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
keys: *mut *mut *mut ::std::os::raw::c_char,
num_keys: *mut i64,
) -> OrtStatusPtr,
>,
pub AddFreeDimensionOverrideByName: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
dim_name: *const ::std::os::raw::c_char,
dim_value: i64,
) -> OrtStatusPtr,
>,
pub GetAvailableProviders: ::std::option::Option<
unsafe extern "C" fn(
out_ptr: *mut *mut *mut ::std::os::raw::c_char,
provider_length: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub ReleaseAvailableProviders: ::std::option::Option<
unsafe extern "C" fn(
ptr: *mut *mut ::std::os::raw::c_char,
providers_length: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub GetStringTensorElementLength: ::std::option::Option<
unsafe extern "C" fn(value: *const OrtValue, index: usize, out: *mut usize) -> OrtStatusPtr,
>,
pub GetStringTensorElement: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
s_len: usize,
index: usize,
s: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub FillStringTensorElement: ::std::option::Option<
unsafe extern "C" fn(
value: *mut OrtValue,
s: *const ::std::os::raw::c_char,
index: usize,
) -> OrtStatusPtr,
>,
pub AddSessionConfigEntry: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
config_key: *const ::std::os::raw::c_char,
config_value: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub CreateAllocator: ::std::option::Option<
unsafe extern "C" fn(
session: *const OrtSession,
mem_info: *const OrtMemoryInfo,
out: *mut *mut OrtAllocator,
) -> OrtStatusPtr,
>,
pub ReleaseAllocator: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtAllocator)>,
pub RunWithBinding: ::std::option::Option<
unsafe extern "C" fn(
session: *mut OrtSession,
run_options: *const OrtRunOptions,
binding_ptr: *const OrtIoBinding,
) -> OrtStatusPtr,
>,
pub CreateIoBinding: ::std::option::Option<
unsafe extern "C" fn(session: *mut OrtSession, out: *mut *mut OrtIoBinding) -> OrtStatusPtr,
>,
pub ReleaseIoBinding: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtIoBinding)>,
pub BindInput: ::std::option::Option<
unsafe extern "C" fn(
binding_ptr: *mut OrtIoBinding,
name: *const ::std::os::raw::c_char,
val_ptr: *const OrtValue,
) -> OrtStatusPtr,
>,
pub BindOutput: ::std::option::Option<
unsafe extern "C" fn(
binding_ptr: *mut OrtIoBinding,
name: *const ::std::os::raw::c_char,
val_ptr: *const OrtValue,
) -> OrtStatusPtr,
>,
pub BindOutputToDevice: ::std::option::Option<
unsafe extern "C" fn(
binding_ptr: *mut OrtIoBinding,
name: *const ::std::os::raw::c_char,
mem_info_ptr: *const OrtMemoryInfo,
) -> OrtStatusPtr,
>,
pub GetBoundOutputNames: ::std::option::Option<
unsafe extern "C" fn(
binding_ptr: *const OrtIoBinding,
allocator: *mut OrtAllocator,
buffer: *mut *mut ::std::os::raw::c_char,
lengths: *mut *mut usize,
count: *mut usize,
) -> OrtStatusPtr,
>,
pub GetBoundOutputValues: ::std::option::Option<
unsafe extern "C" fn(
binding_ptr: *const OrtIoBinding,
allocator: *mut OrtAllocator,
output: *mut *mut *mut OrtValue,
output_count: *mut usize,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Clears any previously set Inputs for an ::OrtIoBinding"]
pub ClearBoundInputs:
::std::option::Option<unsafe extern "C" fn(binding_ptr: *mut OrtIoBinding)>,
#[doc = " \\brief Clears any previously set Outputs for an ::OrtIoBinding"]
pub ClearBoundOutputs:
::std::option::Option<unsafe extern "C" fn(binding_ptr: *mut OrtIoBinding)>,
pub TensorAt: ::std::option::Option<
unsafe extern "C" fn(
value: *mut OrtValue,
location_values: *const i64,
location_values_count: usize,
out: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub CreateAndRegisterAllocator: ::std::option::Option<
unsafe extern "C" fn(
env: *mut OrtEnv,
mem_info: *const OrtMemoryInfo,
arena_cfg: *const OrtArenaCfg,
) -> OrtStatusPtr,
>,
pub SetLanguageProjection: ::std::option::Option<
unsafe extern "C" fn(
ort_env: *const OrtEnv,
projection: OrtLanguageProjection,
) -> OrtStatusPtr,
>,
pub SessionGetProfilingStartTimeNs: ::std::option::Option<
unsafe extern "C" fn(session: *const OrtSession, out: *mut u64) -> OrtStatusPtr,
>,
pub SetGlobalIntraOpNumThreads: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
intra_op_num_threads: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub SetGlobalInterOpNumThreads: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
inter_op_num_threads: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub SetGlobalSpinControl: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
allow_spinning: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub AddInitializer: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
name: *const ::std::os::raw::c_char,
val: *const OrtValue,
) -> OrtStatusPtr,
>,
pub CreateEnvWithCustomLoggerAndGlobalThreadPools: ::std::option::Option<
unsafe extern "C" fn(
logging_function: OrtLoggingFunction,
logger_param: *mut ::std::os::raw::c_void,
log_severity_level: OrtLoggingLevel,
logid: *const ::std::os::raw::c_char,
tp_options: *const OrtThreadingOptions,
out: *mut *mut OrtEnv,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_CUDA: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
cuda_options: *const OrtCUDAProviderOptions,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_ROCM: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
rocm_options: *const OrtROCMProviderOptions,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_OpenVINO: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
provider_options: *const OrtOpenVINOProviderOptions,
) -> OrtStatusPtr,
>,
pub SetGlobalDenormalAsZero: ::std::option::Option<
unsafe extern "C" fn(tp_options: *mut OrtThreadingOptions) -> OrtStatusPtr,
>,
pub CreateArenaCfg: ::std::option::Option<
unsafe extern "C" fn(
max_mem: usize,
arena_extend_strategy: ::std::os::raw::c_int,
initial_chunk_size_bytes: ::std::os::raw::c_int,
max_dead_bytes_per_chunk: ::std::os::raw::c_int,
out: *mut *mut OrtArenaCfg,
) -> OrtStatusPtr,
>,
pub ReleaseArenaCfg: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtArenaCfg)>,
pub ModelMetadataGetGraphDescription: ::std::option::Option<
unsafe extern "C" fn(
model_metadata: *const OrtModelMetadata,
allocator: *mut OrtAllocator,
value: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_TensorRT: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
tensorrt_options: *const OrtTensorRTProviderOptions,
) -> OrtStatusPtr,
>,
pub SetCurrentGpuDeviceId: ::std::option::Option<
unsafe extern "C" fn(device_id: ::std::os::raw::c_int) -> OrtStatusPtr,
>,
pub GetCurrentGpuDeviceId: ::std::option::Option<
unsafe extern "C" fn(device_id: *mut ::std::os::raw::c_int) -> OrtStatusPtr,
>,
pub KernelInfoGetAttributeArray_float: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
name: *const ::std::os::raw::c_char,
out: *mut f32,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub KernelInfoGetAttributeArray_int64: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
name: *const ::std::os::raw::c_char,
out: *mut i64,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub CreateArenaCfgV2: ::std::option::Option<
unsafe extern "C" fn(
arena_config_keys: *const *const ::std::os::raw::c_char,
arena_config_values: *const usize,
num_keys: usize,
out: *mut *mut OrtArenaCfg,
) -> OrtStatusPtr,
>,
pub AddRunConfigEntry: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtRunOptions,
config_key: *const ::std::os::raw::c_char,
config_value: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub CreatePrepackedWeightsContainer: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtPrepackedWeightsContainer) -> OrtStatusPtr,
>,
pub ReleasePrepackedWeightsContainer:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtPrepackedWeightsContainer)>,
pub CreateSessionWithPrepackedWeightsContainer: ::std::option::Option<
unsafe extern "C" fn(
env: *const OrtEnv,
model_path: *const ::std::os::raw::c_char,
options: *const OrtSessionOptions,
prepacked_weights_container: *mut OrtPrepackedWeightsContainer,
out: *mut *mut OrtSession,
) -> OrtStatusPtr,
>,
pub CreateSessionFromArrayWithPrepackedWeightsContainer: ::std::option::Option<
unsafe extern "C" fn(
env: *const OrtEnv,
model_data: *const ::std::os::raw::c_void,
model_data_length: usize,
options: *const OrtSessionOptions,
prepacked_weights_container: *mut OrtPrepackedWeightsContainer,
out: *mut *mut OrtSession,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_TensorRT_V2: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
tensorrt_options: *const OrtTensorRTProviderOptionsV2,
) -> OrtStatusPtr,
>,
pub CreateTensorRTProviderOptions: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtTensorRTProviderOptionsV2) -> OrtStatusPtr,
>,
pub UpdateTensorRTProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
tensorrt_options: *mut OrtTensorRTProviderOptionsV2,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub GetTensorRTProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(
tensorrt_options: *const OrtTensorRTProviderOptionsV2,
allocator: *mut OrtAllocator,
ptr: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Release an ::OrtTensorRTProviderOptionsV2\n\n \\note This is an exception in the naming convention of other Release* functions, as the name of the method does not have the V2 suffix, but the type does"]
pub ReleaseTensorRTProviderOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtTensorRTProviderOptionsV2)>,
pub EnableOrtCustomOps: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions) -> OrtStatusPtr,
>,
pub RegisterAllocator: ::std::option::Option<
unsafe extern "C" fn(env: *mut OrtEnv, allocator: *mut OrtAllocator) -> OrtStatusPtr,
>,
pub UnregisterAllocator: ::std::option::Option<
unsafe extern "C" fn(env: *mut OrtEnv, mem_info: *const OrtMemoryInfo) -> OrtStatusPtr,
>,
pub IsSparseTensor: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
out: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub CreateSparseTensorAsOrtValue: ::std::option::Option<
unsafe extern "C" fn(
allocator: *mut OrtAllocator,
dense_shape: *const i64,
dense_shape_len: usize,
type_: ONNXTensorElementDataType,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub FillSparseTensorCoo: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *mut OrtValue,
data_mem_info: *const OrtMemoryInfo,
values_shape: *const i64,
values_shape_len: usize,
values: *const ::std::os::raw::c_void,
indices_data: *const i64,
indices_num: usize,
) -> OrtStatusPtr,
>,
pub FillSparseTensorCsr: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *mut OrtValue,
data_mem_info: *const OrtMemoryInfo,
values_shape: *const i64,
values_shape_len: usize,
values: *const ::std::os::raw::c_void,
inner_indices_data: *const i64,
inner_indices_num: usize,
outer_indices_data: *const i64,
outer_indices_num: usize,
) -> OrtStatusPtr,
>,
pub FillSparseTensorBlockSparse: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *mut OrtValue,
data_mem_info: *const OrtMemoryInfo,
values_shape: *const i64,
values_shape_len: usize,
values: *const ::std::os::raw::c_void,
indices_shape_data: *const i64,
indices_shape_len: usize,
indices_data: *const i32,
) -> OrtStatusPtr,
>,
pub CreateSparseTensorWithValuesAsOrtValue: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtMemoryInfo,
p_data: *mut ::std::os::raw::c_void,
dense_shape: *const i64,
dense_shape_len: usize,
values_shape: *const i64,
values_shape_len: usize,
type_: ONNXTensorElementDataType,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub UseCooIndices: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *mut OrtValue,
indices_data: *mut i64,
indices_num: usize,
) -> OrtStatusPtr,
>,
pub UseCsrIndices: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *mut OrtValue,
inner_data: *mut i64,
inner_num: usize,
outer_data: *mut i64,
outer_num: usize,
) -> OrtStatusPtr,
>,
pub UseBlockSparseIndices: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *mut OrtValue,
indices_shape: *const i64,
indices_shape_len: usize,
indices_data: *mut i32,
) -> OrtStatusPtr,
>,
pub GetSparseTensorFormat: ::std::option::Option<
unsafe extern "C" fn(ort_value: *const OrtValue, out: *mut OrtSparseFormat) -> OrtStatusPtr,
>,
pub GetSparseTensorValuesTypeAndShape: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *const OrtValue,
out: *mut *mut OrtTensorTypeAndShapeInfo,
) -> OrtStatusPtr,
>,
pub GetSparseTensorValues: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *const OrtValue,
out: *mut *const ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub GetSparseTensorIndicesTypeShape: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *const OrtValue,
indices_format: OrtSparseIndicesFormat,
out: *mut *mut OrtTensorTypeAndShapeInfo,
) -> OrtStatusPtr,
>,
pub GetSparseTensorIndices: ::std::option::Option<
unsafe extern "C" fn(
ort_value: *const OrtValue,
indices_format: OrtSparseIndicesFormat,
num_indices: *mut usize,
indices: *mut *const ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub HasValue: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
out: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub KernelContext_GetGPUComputeStream: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
out: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub GetTensorMemoryInfo: ::std::option::Option<
unsafe extern "C" fn(
value: *const OrtValue,
mem_info: *mut *const OrtMemoryInfo,
) -> OrtStatusPtr,
>,
pub GetExecutionProviderApi: ::std::option::Option<
unsafe extern "C" fn(
provider_name: *const ::std::os::raw::c_char,
version: u32,
provider_api: *mut *const ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub SessionOptionsSetCustomCreateThreadFn: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
ort_custom_create_thread_fn: OrtCustomCreateThreadFn,
) -> OrtStatusPtr,
>,
pub SessionOptionsSetCustomThreadCreationOptions: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
ort_custom_thread_creation_options: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub SessionOptionsSetCustomJoinThreadFn: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
ort_custom_join_thread_fn: OrtCustomJoinThreadFn,
) -> OrtStatusPtr,
>,
pub SetGlobalCustomCreateThreadFn: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
ort_custom_create_thread_fn: OrtCustomCreateThreadFn,
) -> OrtStatusPtr,
>,
pub SetGlobalCustomThreadCreationOptions: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
ort_custom_thread_creation_options: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub SetGlobalCustomJoinThreadFn: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
ort_custom_join_thread_fn: OrtCustomJoinThreadFn,
) -> OrtStatusPtr,
>,
pub SynchronizeBoundInputs:
::std::option::Option<unsafe extern "C" fn(binding_ptr: *mut OrtIoBinding) -> OrtStatusPtr>,
pub SynchronizeBoundOutputs:
::std::option::Option<unsafe extern "C" fn(binding_ptr: *mut OrtIoBinding) -> OrtStatusPtr>,
pub SessionOptionsAppendExecutionProvider_CUDA_V2: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
cuda_options: *const OrtCUDAProviderOptionsV2,
) -> OrtStatusPtr,
>,
pub CreateCUDAProviderOptions: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtCUDAProviderOptionsV2) -> OrtStatusPtr,
>,
pub UpdateCUDAProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cuda_options: *mut OrtCUDAProviderOptionsV2,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub GetCUDAProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(
cuda_options: *const OrtCUDAProviderOptionsV2,
allocator: *mut OrtAllocator,
ptr: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Release an ::OrtCUDAProviderOptionsV2\n\n \\note This is an exception in the naming convention of other Release* functions, as the name of the method does not have the V2 suffix, but the type does\n\n \\since Version 1.11."]
pub ReleaseCUDAProviderOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtCUDAProviderOptionsV2)>,
pub SessionOptionsAppendExecutionProvider_MIGraphX: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
migraphx_options: *const OrtMIGraphXProviderOptions,
) -> OrtStatusPtr,
>,
pub AddExternalInitializers: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
initializer_names: *const *const ::std::os::raw::c_char,
initializers: *const *const OrtValue,
num_initializers: usize,
) -> OrtStatusPtr,
>,
pub CreateOpAttr: ::std::option::Option<
unsafe extern "C" fn(
name: *const ::std::os::raw::c_char,
data: *const ::std::os::raw::c_void,
len: ::std::os::raw::c_int,
type_: OrtOpAttrType,
op_attr: *mut *mut OrtOpAttr,
) -> OrtStatusPtr,
>,
pub ReleaseOpAttr: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtOpAttr)>,
pub CreateOp: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
op_name: *const ::std::os::raw::c_char,
domain: *const ::std::os::raw::c_char,
version: ::std::os::raw::c_int,
type_constraint_names: *mut *const ::std::os::raw::c_char,
type_constraint_values: *const ONNXTensorElementDataType,
type_constraint_count: ::std::os::raw::c_int,
attr_values: *const *const OrtOpAttr,
attr_count: ::std::os::raw::c_int,
input_count: ::std::os::raw::c_int,
output_count: ::std::os::raw::c_int,
ort_op: *mut *mut OrtOp,
) -> OrtStatusPtr,
>,
pub InvokeOp: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
ort_op: *const OrtOp,
input_values: *const *const OrtValue,
input_count: ::std::os::raw::c_int,
output_values: *const *mut OrtValue,
output_count: ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub ReleaseOp: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtOp)>,
pub SessionOptionsAppendExecutionProvider: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
provider_name: *const ::std::os::raw::c_char,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub CopyKernelInfo: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
info_copy: *mut *mut OrtKernelInfo,
) -> OrtStatusPtr,
>,
pub ReleaseKernelInfo: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtKernelInfo)>,
#[doc = " \\name Ort Training\n @{\n** \\brief Gets the Training C Api struct\n*\n* Call this function to access the ::OrtTrainingApi structure that holds pointers to functions that enable\n* training with onnxruntime.\n* \\note A NULL pointer will be returned and no error message will be printed if the training api\n* is not supported with this build. A NULL pointer will be returned and an error message will be\n* printed if the provided version is unsupported, for example when using a runtime older than the\n* version created with this header file.\n*\n* \\param[in] version Must be ::ORT_API_VERSION\n* \\return The ::OrtTrainingApi struct for the version requested.\n*\n* \\since Version 1.13\n*/"]
pub GetTrainingApi:
::std::option::Option<unsafe extern "C" fn(version: u32) -> *const OrtTrainingApi>,
pub SessionOptionsAppendExecutionProvider_CANN: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
cann_options: *const OrtCANNProviderOptions,
) -> OrtStatusPtr,
>,
pub CreateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtCANNProviderOptions) -> OrtStatusPtr,
>,
pub UpdateCANNProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *mut OrtCANNProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub GetCANNProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(
cann_options: *const OrtCANNProviderOptions,
allocator: *mut OrtAllocator,
ptr: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Release an OrtCANNProviderOptions\n\n \\param[in] input The pointer of OrtCANNProviderOptions which will been deleted\n\n \\since Version 1.13."]
pub ReleaseCANNProviderOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtCANNProviderOptions)>,
pub MemoryInfoGetDeviceType: ::std::option::Option<
unsafe extern "C" fn(ptr: *const OrtMemoryInfo, out: *mut OrtMemoryInfoDeviceType),
>,
pub UpdateEnvWithCustomLogLevel: ::std::option::Option<
unsafe extern "C" fn(
ort_env: *mut OrtEnv,
log_severity_level: OrtLoggingLevel,
) -> OrtStatusPtr,
>,
pub SetGlobalIntraOpThreadAffinity: ::std::option::Option<
unsafe extern "C" fn(
tp_options: *mut OrtThreadingOptions,
affinity_string: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub RegisterCustomOpsLibrary_V2: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
library_name: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub RegisterCustomOpsUsingFunction: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
registration_func_name: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub KernelInfo_GetInputCount: ::std::option::Option<
unsafe extern "C" fn(info: *const OrtKernelInfo, out: *mut usize) -> OrtStatusPtr,
>,
pub KernelInfo_GetOutputCount: ::std::option::Option<
unsafe extern "C" fn(info: *const OrtKernelInfo, out: *mut usize) -> OrtStatusPtr,
>,
pub KernelInfo_GetInputName: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
index: usize,
out: *mut ::std::os::raw::c_char,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub KernelInfo_GetOutputName: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
index: usize,
out: *mut ::std::os::raw::c_char,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub KernelInfo_GetInputTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
index: usize,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub KernelInfo_GetOutputTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
index: usize,
type_info: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub KernelInfoGetAttribute_tensor: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
name: *const ::std::os::raw::c_char,
allocator: *mut OrtAllocator,
out: *mut *mut OrtValue,
) -> OrtStatusPtr,
>,
pub HasSessionConfigEntry: ::std::option::Option<
unsafe extern "C" fn(
options: *const OrtSessionOptions,
config_key: *const ::std::os::raw::c_char,
out: *mut ::std::os::raw::c_int,
) -> OrtStatusPtr,
>,
pub GetSessionConfigEntry: ::std::option::Option<
unsafe extern "C" fn(
options: *const OrtSessionOptions,
config_key: *const ::std::os::raw::c_char,
config_value: *mut ::std::os::raw::c_char,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_Dnnl: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
dnnl_options: *const OrtDnnlProviderOptions,
) -> OrtStatusPtr,
>,
pub CreateDnnlProviderOptions: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtDnnlProviderOptions) -> OrtStatusPtr,
>,
pub UpdateDnnlProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
dnnl_options: *mut OrtDnnlProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub GetDnnlProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(
dnnl_options: *const OrtDnnlProviderOptions,
allocator: *mut OrtAllocator,
ptr: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Release an ::OrtDnnlProviderOptions\n\n \\since Version 1.15."]
pub ReleaseDnnlProviderOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtDnnlProviderOptions)>,
pub KernelInfo_GetNodeName: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
out: *mut ::std::os::raw::c_char,
size: *mut usize,
) -> OrtStatusPtr,
>,
pub KernelInfo_GetLogger: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
logger: *mut *const OrtLogger,
) -> OrtStatusPtr,
>,
pub KernelContext_GetLogger: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
logger: *mut *const OrtLogger,
) -> OrtStatusPtr,
>,
pub Logger_LogMessage: ::std::option::Option<
unsafe extern "C" fn(
logger: *const OrtLogger,
log_severity_level: OrtLoggingLevel,
message: *const ::std::os::raw::c_char,
file_path: *const ::std::os::raw::c_char,
line_number: ::std::os::raw::c_int,
func_name: *const ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub Logger_GetLoggingSeverityLevel: ::std::option::Option<
unsafe extern "C" fn(logger: *const OrtLogger, out: *mut OrtLoggingLevel) -> OrtStatusPtr,
>,
pub KernelInfoGetConstantInput_tensor: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
index: usize,
is_constant: *mut ::std::os::raw::c_int,
out: *mut *const OrtValue,
) -> OrtStatusPtr,
>,
pub CastTypeInfoToOptionalTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
type_info: *const OrtTypeInfo,
out: *mut *const OrtOptionalTypeInfo,
) -> OrtStatusPtr,
>,
pub GetOptionalContainedTypeInfo: ::std::option::Option<
unsafe extern "C" fn(
optional_type_info: *const OrtOptionalTypeInfo,
out: *mut *mut OrtTypeInfo,
) -> OrtStatusPtr,
>,
pub GetResizedStringTensorElementBuffer: ::std::option::Option<
unsafe extern "C" fn(
value: *mut OrtValue,
index: usize,
length_in_bytes: usize,
buffer: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
pub KernelContext_GetAllocator: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
mem_info: *const OrtMemoryInfo,
out: *mut *mut OrtAllocator,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Returns a null terminated string of the build info including git info and cxx flags\n\n \\return UTF-8 encoded version string. Do not deallocate the returned buffer.\n\n \\since Version 1.15."]
pub GetBuildInfoString:
::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
pub CreateROCMProviderOptions: ::std::option::Option<
unsafe extern "C" fn(out: *mut *mut OrtROCMProviderOptions) -> OrtStatusPtr,
>,
pub UpdateROCMProviderOptions: ::std::option::Option<
unsafe extern "C" fn(
rocm_options: *mut OrtROCMProviderOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub GetROCMProviderOptionsAsString: ::std::option::Option<
unsafe extern "C" fn(
rocm_options: *const OrtROCMProviderOptions,
allocator: *mut OrtAllocator,
ptr: *mut *mut ::std::os::raw::c_char,
) -> OrtStatusPtr,
>,
#[doc = " \\brief Release an ::OrtROCMProviderOptions\n\n \\note This is an exception in the naming convention of other Release* functions, as the name of the method does not have the V2 suffix, but the type does\n\n \\since Version 1.16."]
pub ReleaseROCMProviderOptions:
::std::option::Option<unsafe extern "C" fn(input: *mut OrtROCMProviderOptions)>,
pub CreateAndRegisterAllocatorV2: ::std::option::Option<
unsafe extern "C" fn(
env: *mut OrtEnv,
provider_type: *const ::std::os::raw::c_char,
mem_info: *const OrtMemoryInfo,
arena_cfg: *const OrtArenaCfg,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub RunAsync: ::std::option::Option<
unsafe extern "C" fn(
session: *mut OrtSession,
run_options: *const OrtRunOptions,
input_names: *const *const ::std::os::raw::c_char,
input: *const *const OrtValue,
input_len: usize,
output_names: *const *const ::std::os::raw::c_char,
output_names_len: usize,
output: *mut *mut OrtValue,
run_async_callback: RunAsyncCallbackFn,
user_data: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub UpdateTensorRTProviderOptionsWithValue: ::std::option::Option<
unsafe extern "C" fn(
tensorrt_options: *mut OrtTensorRTProviderOptionsV2,
key: *const ::std::os::raw::c_char,
value: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub GetTensorRTProviderOptionsByName: ::std::option::Option<
unsafe extern "C" fn(
tensorrt_options: *const OrtTensorRTProviderOptionsV2,
key: *const ::std::os::raw::c_char,
ptr: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub UpdateCUDAProviderOptionsWithValue: ::std::option::Option<
unsafe extern "C" fn(
cuda_options: *mut OrtCUDAProviderOptionsV2,
key: *const ::std::os::raw::c_char,
value: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub GetCUDAProviderOptionsByName: ::std::option::Option<
unsafe extern "C" fn(
cuda_options: *const OrtCUDAProviderOptionsV2,
key: *const ::std::os::raw::c_char,
ptr: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub KernelContext_GetResource: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
resource_version: ::std::os::raw::c_int,
resource_id: ::std::os::raw::c_int,
resource: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub SetUserLoggingFunction: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
user_logging_function: OrtLoggingFunction,
user_logging_param: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub ShapeInferContext_GetInputCount: ::std::option::Option<
unsafe extern "C" fn(context: *const OrtShapeInferContext, out: *mut usize) -> OrtStatusPtr,
>,
pub ShapeInferContext_GetInputTypeShape: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtShapeInferContext,
index: usize,
info: *mut *mut OrtTensorTypeAndShapeInfo,
) -> OrtStatusPtr,
>,
pub ShapeInferContext_GetAttribute: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtShapeInferContext,
attr_name: *const ::std::os::raw::c_char,
attr: *mut *const OrtOpAttr,
) -> OrtStatusPtr,
>,
pub ShapeInferContext_SetOutputTypeShape: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtShapeInferContext,
index: usize,
info: *const OrtTensorTypeAndShapeInfo,
) -> OrtStatusPtr,
>,
pub SetSymbolicDimensions: ::std::option::Option<
unsafe extern "C" fn(
info: *mut OrtTensorTypeAndShapeInfo,
dim_params: *mut *const ::std::os::raw::c_char,
dim_params_length: usize,
) -> OrtStatusPtr,
>,
pub ReadOpAttr: ::std::option::Option<
unsafe extern "C" fn(
op_attr: *const OrtOpAttr,
type_: OrtOpAttrType,
data: *mut ::std::os::raw::c_void,
len: usize,
out: *mut usize,
) -> OrtStatusPtr,
>,
pub SetDeterministicCompute: ::std::option::Option<
unsafe extern "C" fn(options: *mut OrtSessionOptions, value: bool) -> OrtStatusPtr,
>,
pub KernelContext_ParallelFor: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
fn_: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: usize),
>,
total: usize,
num_batch: usize,
usr_data: *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_OpenVINO_V2: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub SessionOptionsAppendExecutionProvider_VitisAI: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
provider_options_keys: *const *const ::std::os::raw::c_char,
provider_options_values: *const *const ::std::os::raw::c_char,
num_keys: usize,
) -> OrtStatusPtr,
>,
pub KernelContext_GetScratchBuffer: ::std::option::Option<
unsafe extern "C" fn(
context: *const OrtKernelContext,
mem_info: *const OrtMemoryInfo,
count_or_bytes: usize,
out: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub KernelInfoGetAllocator: ::std::option::Option<
unsafe extern "C" fn(
info: *const OrtKernelInfo,
mem_type: OrtMemType,
out: *mut *mut OrtAllocator,
) -> OrtStatusPtr,
>,
pub AddExternalInitializersFromFilesInMemory: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtSessionOptions,
external_initializer_file_names: *const *const ::std::os::raw::c_char,
external_initializer_file_buffer_array: *const *mut ::std::os::raw::c_char,
external_initializer_file_lengths: *const usize,
num_external_initializer_files: usize,
) -> OrtStatusPtr,
>,
pub CreateLoraAdapter: ::std::option::Option<
unsafe extern "C" fn(
adapter_file_path: *const ::std::os::raw::c_char,
allocator: *mut OrtAllocator,
out: *mut *mut OrtLoraAdapter,
) -> OrtStatusPtr,
>,
pub CreateLoraAdapterFromArray: ::std::option::Option<
unsafe extern "C" fn(
bytes: *const ::std::os::raw::c_void,
num_bytes: usize,
allocator: *mut OrtAllocator,
out: *mut *mut OrtLoraAdapter,
) -> OrtStatusPtr,
>,
pub ReleaseLoraAdapter: ::std::option::Option<unsafe extern "C" fn(input: *mut OrtLoraAdapter)>,
pub RunOptionsAddActiveLoraAdapter: ::std::option::Option<
unsafe extern "C" fn(
options: *mut OrtRunOptions,
adapter: *const OrtLoraAdapter,
) -> OrtStatusPtr,
>,
pub SetEpDynamicOptions: ::std::option::Option<
unsafe extern "C" fn(
sess: *mut OrtSession,
keys: *const *const ::std::os::raw::c_char,
values: *const *const ::std::os::raw::c_char,
kv_len: usize,
) -> OrtStatusPtr,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtApi"][::std::mem::size_of::<OrtApi>() - 2280usize];
["Alignment of OrtApi"][::std::mem::align_of::<OrtApi>() - 8usize];
["Offset of field: OrtApi::CreateStatus"]
[::std::mem::offset_of!(OrtApi, CreateStatus) - 0usize];
["Offset of field: OrtApi::GetErrorCode"]
[::std::mem::offset_of!(OrtApi, GetErrorCode) - 8usize];
["Offset of field: OrtApi::GetErrorMessage"]
[::std::mem::offset_of!(OrtApi, GetErrorMessage) - 16usize];
["Offset of field: OrtApi::CreateEnv"][::std::mem::offset_of!(OrtApi, CreateEnv) - 24usize];
["Offset of field: OrtApi::CreateEnvWithCustomLogger"]
[::std::mem::offset_of!(OrtApi, CreateEnvWithCustomLogger) - 32usize];
["Offset of field: OrtApi::EnableTelemetryEvents"]
[::std::mem::offset_of!(OrtApi, EnableTelemetryEvents) - 40usize];
["Offset of field: OrtApi::DisableTelemetryEvents"]
[::std::mem::offset_of!(OrtApi, DisableTelemetryEvents) - 48usize];
["Offset of field: OrtApi::CreateSession"]
[::std::mem::offset_of!(OrtApi, CreateSession) - 56usize];
["Offset of field: OrtApi::CreateSessionFromArray"]
[::std::mem::offset_of!(OrtApi, CreateSessionFromArray) - 64usize];
["Offset of field: OrtApi::Run"][::std::mem::offset_of!(OrtApi, Run) - 72usize];
["Offset of field: OrtApi::CreateSessionOptions"]
[::std::mem::offset_of!(OrtApi, CreateSessionOptions) - 80usize];
["Offset of field: OrtApi::SetOptimizedModelFilePath"]
[::std::mem::offset_of!(OrtApi, SetOptimizedModelFilePath) - 88usize];
["Offset of field: OrtApi::CloneSessionOptions"]
[::std::mem::offset_of!(OrtApi, CloneSessionOptions) - 96usize];
["Offset of field: OrtApi::SetSessionExecutionMode"]
[::std::mem::offset_of!(OrtApi, SetSessionExecutionMode) - 104usize];
["Offset of field: OrtApi::EnableProfiling"]
[::std::mem::offset_of!(OrtApi, EnableProfiling) - 112usize];
["Offset of field: OrtApi::DisableProfiling"]
[::std::mem::offset_of!(OrtApi, DisableProfiling) - 120usize];
["Offset of field: OrtApi::EnableMemPattern"]
[::std::mem::offset_of!(OrtApi, EnableMemPattern) - 128usize];
["Offset of field: OrtApi::DisableMemPattern"]
[::std::mem::offset_of!(OrtApi, DisableMemPattern) - 136usize];
["Offset of field: OrtApi::EnableCpuMemArena"]
[::std::mem::offset_of!(OrtApi, EnableCpuMemArena) - 144usize];
["Offset of field: OrtApi::DisableCpuMemArena"]
[::std::mem::offset_of!(OrtApi, DisableCpuMemArena) - 152usize];
["Offset of field: OrtApi::SetSessionLogId"]
[::std::mem::offset_of!(OrtApi, SetSessionLogId) - 160usize];
["Offset of field: OrtApi::SetSessionLogVerbosityLevel"]
[::std::mem::offset_of!(OrtApi, SetSessionLogVerbosityLevel) - 168usize];
["Offset of field: OrtApi::SetSessionLogSeverityLevel"]
[::std::mem::offset_of!(OrtApi, SetSessionLogSeverityLevel) - 176usize];
["Offset of field: OrtApi::SetSessionGraphOptimizationLevel"]
[::std::mem::offset_of!(OrtApi, SetSessionGraphOptimizationLevel) - 184usize];
["Offset of field: OrtApi::SetIntraOpNumThreads"]
[::std::mem::offset_of!(OrtApi, SetIntraOpNumThreads) - 192usize];
["Offset of field: OrtApi::SetInterOpNumThreads"]
[::std::mem::offset_of!(OrtApi, SetInterOpNumThreads) - 200usize];
["Offset of field: OrtApi::CreateCustomOpDomain"]
[::std::mem::offset_of!(OrtApi, CreateCustomOpDomain) - 208usize];
["Offset of field: OrtApi::CustomOpDomain_Add"]
[::std::mem::offset_of!(OrtApi, CustomOpDomain_Add) - 216usize];
["Offset of field: OrtApi::AddCustomOpDomain"]
[::std::mem::offset_of!(OrtApi, AddCustomOpDomain) - 224usize];
["Offset of field: OrtApi::RegisterCustomOpsLibrary"]
[::std::mem::offset_of!(OrtApi, RegisterCustomOpsLibrary) - 232usize];
["Offset of field: OrtApi::SessionGetInputCount"]
[::std::mem::offset_of!(OrtApi, SessionGetInputCount) - 240usize];
["Offset of field: OrtApi::SessionGetOutputCount"]
[::std::mem::offset_of!(OrtApi, SessionGetOutputCount) - 248usize];
["Offset of field: OrtApi::SessionGetOverridableInitializerCount"]
[::std::mem::offset_of!(OrtApi, SessionGetOverridableInitializerCount) - 256usize];
["Offset of field: OrtApi::SessionGetInputTypeInfo"]
[::std::mem::offset_of!(OrtApi, SessionGetInputTypeInfo) - 264usize];
["Offset of field: OrtApi::SessionGetOutputTypeInfo"]
[::std::mem::offset_of!(OrtApi, SessionGetOutputTypeInfo) - 272usize];
["Offset of field: OrtApi::SessionGetOverridableInitializerTypeInfo"]
[::std::mem::offset_of!(OrtApi, SessionGetOverridableInitializerTypeInfo) - 280usize];
["Offset of field: OrtApi::SessionGetInputName"]
[::std::mem::offset_of!(OrtApi, SessionGetInputName) - 288usize];
["Offset of field: OrtApi::SessionGetOutputName"]
[::std::mem::offset_of!(OrtApi, SessionGetOutputName) - 296usize];
["Offset of field: OrtApi::SessionGetOverridableInitializerName"]
[::std::mem::offset_of!(OrtApi, SessionGetOverridableInitializerName) - 304usize];
["Offset of field: OrtApi::CreateRunOptions"]
[::std::mem::offset_of!(OrtApi, CreateRunOptions) - 312usize];
["Offset of field: OrtApi::RunOptionsSetRunLogVerbosityLevel"]
[::std::mem::offset_of!(OrtApi, RunOptionsSetRunLogVerbosityLevel) - 320usize];
["Offset of field: OrtApi::RunOptionsSetRunLogSeverityLevel"]
[::std::mem::offset_of!(OrtApi, RunOptionsSetRunLogSeverityLevel) - 328usize];
["Offset of field: OrtApi::RunOptionsSetRunTag"]
[::std::mem::offset_of!(OrtApi, RunOptionsSetRunTag) - 336usize];
["Offset of field: OrtApi::RunOptionsGetRunLogVerbosityLevel"]
[::std::mem::offset_of!(OrtApi, RunOptionsGetRunLogVerbosityLevel) - 344usize];
["Offset of field: OrtApi::RunOptionsGetRunLogSeverityLevel"]
[::std::mem::offset_of!(OrtApi, RunOptionsGetRunLogSeverityLevel) - 352usize];
["Offset of field: OrtApi::RunOptionsGetRunTag"]
[::std::mem::offset_of!(OrtApi, RunOptionsGetRunTag) - 360usize];
["Offset of field: OrtApi::RunOptionsSetTerminate"]
[::std::mem::offset_of!(OrtApi, RunOptionsSetTerminate) - 368usize];
["Offset of field: OrtApi::RunOptionsUnsetTerminate"]
[::std::mem::offset_of!(OrtApi, RunOptionsUnsetTerminate) - 376usize];
["Offset of field: OrtApi::CreateTensorAsOrtValue"]
[::std::mem::offset_of!(OrtApi, CreateTensorAsOrtValue) - 384usize];
["Offset of field: OrtApi::CreateTensorWithDataAsOrtValue"]
[::std::mem::offset_of!(OrtApi, CreateTensorWithDataAsOrtValue) - 392usize];
["Offset of field: OrtApi::IsTensor"][::std::mem::offset_of!(OrtApi, IsTensor) - 400usize];
["Offset of field: OrtApi::GetTensorMutableData"]
[::std::mem::offset_of!(OrtApi, GetTensorMutableData) - 408usize];
["Offset of field: OrtApi::FillStringTensor"]
[::std::mem::offset_of!(OrtApi, FillStringTensor) - 416usize];
["Offset of field: OrtApi::GetStringTensorDataLength"]
[::std::mem::offset_of!(OrtApi, GetStringTensorDataLength) - 424usize];
["Offset of field: OrtApi::GetStringTensorContent"]
[::std::mem::offset_of!(OrtApi, GetStringTensorContent) - 432usize];
["Offset of field: OrtApi::CastTypeInfoToTensorInfo"]
[::std::mem::offset_of!(OrtApi, CastTypeInfoToTensorInfo) - 440usize];
["Offset of field: OrtApi::GetOnnxTypeFromTypeInfo"]
[::std::mem::offset_of!(OrtApi, GetOnnxTypeFromTypeInfo) - 448usize];
["Offset of field: OrtApi::CreateTensorTypeAndShapeInfo"]
[::std::mem::offset_of!(OrtApi, CreateTensorTypeAndShapeInfo) - 456usize];
["Offset of field: OrtApi::SetTensorElementType"]
[::std::mem::offset_of!(OrtApi, SetTensorElementType) - 464usize];
["Offset of field: OrtApi::SetDimensions"]
[::std::mem::offset_of!(OrtApi, SetDimensions) - 472usize];
["Offset of field: OrtApi::GetTensorElementType"]
[::std::mem::offset_of!(OrtApi, GetTensorElementType) - 480usize];
["Offset of field: OrtApi::GetDimensionsCount"]
[::std::mem::offset_of!(OrtApi, GetDimensionsCount) - 488usize];
["Offset of field: OrtApi::GetDimensions"]
[::std::mem::offset_of!(OrtApi, GetDimensions) - 496usize];
["Offset of field: OrtApi::GetSymbolicDimensions"]
[::std::mem::offset_of!(OrtApi, GetSymbolicDimensions) - 504usize];
["Offset of field: OrtApi::GetTensorShapeElementCount"]
[::std::mem::offset_of!(OrtApi, GetTensorShapeElementCount) - 512usize];
["Offset of field: OrtApi::GetTensorTypeAndShape"]
[::std::mem::offset_of!(OrtApi, GetTensorTypeAndShape) - 520usize];
["Offset of field: OrtApi::GetTypeInfo"]
[::std::mem::offset_of!(OrtApi, GetTypeInfo) - 528usize];
["Offset of field: OrtApi::GetValueType"]
[::std::mem::offset_of!(OrtApi, GetValueType) - 536usize];
["Offset of field: OrtApi::CreateMemoryInfo"]
[::std::mem::offset_of!(OrtApi, CreateMemoryInfo) - 544usize];
["Offset of field: OrtApi::CreateCpuMemoryInfo"]
[::std::mem::offset_of!(OrtApi, CreateCpuMemoryInfo) - 552usize];
["Offset of field: OrtApi::CompareMemoryInfo"]
[::std::mem::offset_of!(OrtApi, CompareMemoryInfo) - 560usize];
["Offset of field: OrtApi::MemoryInfoGetName"]
[::std::mem::offset_of!(OrtApi, MemoryInfoGetName) - 568usize];
["Offset of field: OrtApi::MemoryInfoGetId"]
[::std::mem::offset_of!(OrtApi, MemoryInfoGetId) - 576usize];
["Offset of field: OrtApi::MemoryInfoGetMemType"]
[::std::mem::offset_of!(OrtApi, MemoryInfoGetMemType) - 584usize];
["Offset of field: OrtApi::MemoryInfoGetType"]
[::std::mem::offset_of!(OrtApi, MemoryInfoGetType) - 592usize];
["Offset of field: OrtApi::AllocatorAlloc"]
[::std::mem::offset_of!(OrtApi, AllocatorAlloc) - 600usize];
["Offset of field: OrtApi::AllocatorFree"]
[::std::mem::offset_of!(OrtApi, AllocatorFree) - 608usize];
["Offset of field: OrtApi::AllocatorGetInfo"]
[::std::mem::offset_of!(OrtApi, AllocatorGetInfo) - 616usize];
["Offset of field: OrtApi::GetAllocatorWithDefaultOptions"]
[::std::mem::offset_of!(OrtApi, GetAllocatorWithDefaultOptions) - 624usize];
["Offset of field: OrtApi::AddFreeDimensionOverride"]
[::std::mem::offset_of!(OrtApi, AddFreeDimensionOverride) - 632usize];
["Offset of field: OrtApi::GetValue"][::std::mem::offset_of!(OrtApi, GetValue) - 640usize];
["Offset of field: OrtApi::GetValueCount"]
[::std::mem::offset_of!(OrtApi, GetValueCount) - 648usize];
["Offset of field: OrtApi::CreateValue"]
[::std::mem::offset_of!(OrtApi, CreateValue) - 656usize];
["Offset of field: OrtApi::CreateOpaqueValue"]
[::std::mem::offset_of!(OrtApi, CreateOpaqueValue) - 664usize];
["Offset of field: OrtApi::GetOpaqueValue"]
[::std::mem::offset_of!(OrtApi, GetOpaqueValue) - 672usize];
["Offset of field: OrtApi::KernelInfoGetAttribute_float"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAttribute_float) - 680usize];
["Offset of field: OrtApi::KernelInfoGetAttribute_int64"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAttribute_int64) - 688usize];
["Offset of field: OrtApi::KernelInfoGetAttribute_string"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAttribute_string) - 696usize];
["Offset of field: OrtApi::KernelContext_GetInputCount"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetInputCount) - 704usize];
["Offset of field: OrtApi::KernelContext_GetOutputCount"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetOutputCount) - 712usize];
["Offset of field: OrtApi::KernelContext_GetInput"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetInput) - 720usize];
["Offset of field: OrtApi::KernelContext_GetOutput"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetOutput) - 728usize];
["Offset of field: OrtApi::ReleaseEnv"][::std::mem::offset_of!(OrtApi, ReleaseEnv) - 736usize];
["Offset of field: OrtApi::ReleaseStatus"]
[::std::mem::offset_of!(OrtApi, ReleaseStatus) - 744usize];
["Offset of field: OrtApi::ReleaseMemoryInfo"]
[::std::mem::offset_of!(OrtApi, ReleaseMemoryInfo) - 752usize];
["Offset of field: OrtApi::ReleaseSession"]
[::std::mem::offset_of!(OrtApi, ReleaseSession) - 760usize];
["Offset of field: OrtApi::ReleaseValue"]
[::std::mem::offset_of!(OrtApi, ReleaseValue) - 768usize];
["Offset of field: OrtApi::ReleaseRunOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseRunOptions) - 776usize];
["Offset of field: OrtApi::ReleaseTypeInfo"]
[::std::mem::offset_of!(OrtApi, ReleaseTypeInfo) - 784usize];
["Offset of field: OrtApi::ReleaseTensorTypeAndShapeInfo"]
[::std::mem::offset_of!(OrtApi, ReleaseTensorTypeAndShapeInfo) - 792usize];
["Offset of field: OrtApi::ReleaseSessionOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseSessionOptions) - 800usize];
["Offset of field: OrtApi::ReleaseCustomOpDomain"]
[::std::mem::offset_of!(OrtApi, ReleaseCustomOpDomain) - 808usize];
["Offset of field: OrtApi::GetDenotationFromTypeInfo"]
[::std::mem::offset_of!(OrtApi, GetDenotationFromTypeInfo) - 816usize];
["Offset of field: OrtApi::CastTypeInfoToMapTypeInfo"]
[::std::mem::offset_of!(OrtApi, CastTypeInfoToMapTypeInfo) - 824usize];
["Offset of field: OrtApi::CastTypeInfoToSequenceTypeInfo"]
[::std::mem::offset_of!(OrtApi, CastTypeInfoToSequenceTypeInfo) - 832usize];
["Offset of field: OrtApi::GetMapKeyType"]
[::std::mem::offset_of!(OrtApi, GetMapKeyType) - 840usize];
["Offset of field: OrtApi::GetMapValueType"]
[::std::mem::offset_of!(OrtApi, GetMapValueType) - 848usize];
["Offset of field: OrtApi::GetSequenceElementType"]
[::std::mem::offset_of!(OrtApi, GetSequenceElementType) - 856usize];
["Offset of field: OrtApi::ReleaseMapTypeInfo"]
[::std::mem::offset_of!(OrtApi, ReleaseMapTypeInfo) - 864usize];
["Offset of field: OrtApi::ReleaseSequenceTypeInfo"]
[::std::mem::offset_of!(OrtApi, ReleaseSequenceTypeInfo) - 872usize];
["Offset of field: OrtApi::SessionEndProfiling"]
[::std::mem::offset_of!(OrtApi, SessionEndProfiling) - 880usize];
["Offset of field: OrtApi::SessionGetModelMetadata"]
[::std::mem::offset_of!(OrtApi, SessionGetModelMetadata) - 888usize];
["Offset of field: OrtApi::ModelMetadataGetProducerName"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetProducerName) - 896usize];
["Offset of field: OrtApi::ModelMetadataGetGraphName"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetGraphName) - 904usize];
["Offset of field: OrtApi::ModelMetadataGetDomain"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetDomain) - 912usize];
["Offset of field: OrtApi::ModelMetadataGetDescription"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetDescription) - 920usize];
["Offset of field: OrtApi::ModelMetadataLookupCustomMetadataMap"]
[::std::mem::offset_of!(OrtApi, ModelMetadataLookupCustomMetadataMap) - 928usize];
["Offset of field: OrtApi::ModelMetadataGetVersion"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetVersion) - 936usize];
["Offset of field: OrtApi::ReleaseModelMetadata"]
[::std::mem::offset_of!(OrtApi, ReleaseModelMetadata) - 944usize];
["Offset of field: OrtApi::CreateEnvWithGlobalThreadPools"]
[::std::mem::offset_of!(OrtApi, CreateEnvWithGlobalThreadPools) - 952usize];
["Offset of field: OrtApi::DisablePerSessionThreads"]
[::std::mem::offset_of!(OrtApi, DisablePerSessionThreads) - 960usize];
["Offset of field: OrtApi::CreateThreadingOptions"]
[::std::mem::offset_of!(OrtApi, CreateThreadingOptions) - 968usize];
["Offset of field: OrtApi::ReleaseThreadingOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseThreadingOptions) - 976usize];
["Offset of field: OrtApi::ModelMetadataGetCustomMetadataMapKeys"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetCustomMetadataMapKeys) - 984usize];
["Offset of field: OrtApi::AddFreeDimensionOverrideByName"]
[::std::mem::offset_of!(OrtApi, AddFreeDimensionOverrideByName) - 992usize];
["Offset of field: OrtApi::GetAvailableProviders"]
[::std::mem::offset_of!(OrtApi, GetAvailableProviders) - 1000usize];
["Offset of field: OrtApi::ReleaseAvailableProviders"]
[::std::mem::offset_of!(OrtApi, ReleaseAvailableProviders) - 1008usize];
["Offset of field: OrtApi::GetStringTensorElementLength"]
[::std::mem::offset_of!(OrtApi, GetStringTensorElementLength) - 1016usize];
["Offset of field: OrtApi::GetStringTensorElement"]
[::std::mem::offset_of!(OrtApi, GetStringTensorElement) - 1024usize];
["Offset of field: OrtApi::FillStringTensorElement"]
[::std::mem::offset_of!(OrtApi, FillStringTensorElement) - 1032usize];
["Offset of field: OrtApi::AddSessionConfigEntry"]
[::std::mem::offset_of!(OrtApi, AddSessionConfigEntry) - 1040usize];
["Offset of field: OrtApi::CreateAllocator"]
[::std::mem::offset_of!(OrtApi, CreateAllocator) - 1048usize];
["Offset of field: OrtApi::ReleaseAllocator"]
[::std::mem::offset_of!(OrtApi, ReleaseAllocator) - 1056usize];
["Offset of field: OrtApi::RunWithBinding"]
[::std::mem::offset_of!(OrtApi, RunWithBinding) - 1064usize];
["Offset of field: OrtApi::CreateIoBinding"]
[::std::mem::offset_of!(OrtApi, CreateIoBinding) - 1072usize];
["Offset of field: OrtApi::ReleaseIoBinding"]
[::std::mem::offset_of!(OrtApi, ReleaseIoBinding) - 1080usize];
["Offset of field: OrtApi::BindInput"][::std::mem::offset_of!(OrtApi, BindInput) - 1088usize];
["Offset of field: OrtApi::BindOutput"][::std::mem::offset_of!(OrtApi, BindOutput) - 1096usize];
["Offset of field: OrtApi::BindOutputToDevice"]
[::std::mem::offset_of!(OrtApi, BindOutputToDevice) - 1104usize];
["Offset of field: OrtApi::GetBoundOutputNames"]
[::std::mem::offset_of!(OrtApi, GetBoundOutputNames) - 1112usize];
["Offset of field: OrtApi::GetBoundOutputValues"]
[::std::mem::offset_of!(OrtApi, GetBoundOutputValues) - 1120usize];
["Offset of field: OrtApi::ClearBoundInputs"]
[::std::mem::offset_of!(OrtApi, ClearBoundInputs) - 1128usize];
["Offset of field: OrtApi::ClearBoundOutputs"]
[::std::mem::offset_of!(OrtApi, ClearBoundOutputs) - 1136usize];
["Offset of field: OrtApi::TensorAt"][::std::mem::offset_of!(OrtApi, TensorAt) - 1144usize];
["Offset of field: OrtApi::CreateAndRegisterAllocator"]
[::std::mem::offset_of!(OrtApi, CreateAndRegisterAllocator) - 1152usize];
["Offset of field: OrtApi::SetLanguageProjection"]
[::std::mem::offset_of!(OrtApi, SetLanguageProjection) - 1160usize];
["Offset of field: OrtApi::SessionGetProfilingStartTimeNs"]
[::std::mem::offset_of!(OrtApi, SessionGetProfilingStartTimeNs) - 1168usize];
["Offset of field: OrtApi::SetGlobalIntraOpNumThreads"]
[::std::mem::offset_of!(OrtApi, SetGlobalIntraOpNumThreads) - 1176usize];
["Offset of field: OrtApi::SetGlobalInterOpNumThreads"]
[::std::mem::offset_of!(OrtApi, SetGlobalInterOpNumThreads) - 1184usize];
["Offset of field: OrtApi::SetGlobalSpinControl"]
[::std::mem::offset_of!(OrtApi, SetGlobalSpinControl) - 1192usize];
["Offset of field: OrtApi::AddInitializer"]
[::std::mem::offset_of!(OrtApi, AddInitializer) - 1200usize];
["Offset of field: OrtApi::CreateEnvWithCustomLoggerAndGlobalThreadPools"]
[::std::mem::offset_of!(OrtApi, CreateEnvWithCustomLoggerAndGlobalThreadPools) - 1208usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_CUDA"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider_CUDA) - 1216usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_ROCM"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider_ROCM) - 1224usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO"][::std::mem::offset_of!(
OrtApi,
SessionOptionsAppendExecutionProvider_OpenVINO
) - 1232usize];
["Offset of field: OrtApi::SetGlobalDenormalAsZero"]
[::std::mem::offset_of!(OrtApi, SetGlobalDenormalAsZero) - 1240usize];
["Offset of field: OrtApi::CreateArenaCfg"]
[::std::mem::offset_of!(OrtApi, CreateArenaCfg) - 1248usize];
["Offset of field: OrtApi::ReleaseArenaCfg"]
[::std::mem::offset_of!(OrtApi, ReleaseArenaCfg) - 1256usize];
["Offset of field: OrtApi::ModelMetadataGetGraphDescription"]
[::std::mem::offset_of!(OrtApi, ModelMetadataGetGraphDescription) - 1264usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_TensorRT"][::std::mem::offset_of!(
OrtApi,
SessionOptionsAppendExecutionProvider_TensorRT
) - 1272usize];
["Offset of field: OrtApi::SetCurrentGpuDeviceId"]
[::std::mem::offset_of!(OrtApi, SetCurrentGpuDeviceId) - 1280usize];
["Offset of field: OrtApi::GetCurrentGpuDeviceId"]
[::std::mem::offset_of!(OrtApi, GetCurrentGpuDeviceId) - 1288usize];
["Offset of field: OrtApi::KernelInfoGetAttributeArray_float"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAttributeArray_float) - 1296usize];
["Offset of field: OrtApi::KernelInfoGetAttributeArray_int64"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAttributeArray_int64) - 1304usize];
["Offset of field: OrtApi::CreateArenaCfgV2"]
[::std::mem::offset_of!(OrtApi, CreateArenaCfgV2) - 1312usize];
["Offset of field: OrtApi::AddRunConfigEntry"]
[::std::mem::offset_of!(OrtApi, AddRunConfigEntry) - 1320usize];
["Offset of field: OrtApi::CreatePrepackedWeightsContainer"]
[::std::mem::offset_of!(OrtApi, CreatePrepackedWeightsContainer) - 1328usize];
["Offset of field: OrtApi::ReleasePrepackedWeightsContainer"]
[::std::mem::offset_of!(OrtApi, ReleasePrepackedWeightsContainer) - 1336usize];
["Offset of field: OrtApi::CreateSessionWithPrepackedWeightsContainer"]
[::std::mem::offset_of!(OrtApi, CreateSessionWithPrepackedWeightsContainer) - 1344usize];
["Offset of field: OrtApi::CreateSessionFromArrayWithPrepackedWeightsContainer"][::std::mem::offset_of!(
OrtApi,
CreateSessionFromArrayWithPrepackedWeightsContainer
) - 1352usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_TensorRT_V2"][::std::mem::offset_of!(
OrtApi,
SessionOptionsAppendExecutionProvider_TensorRT_V2
) - 1360usize];
["Offset of field: OrtApi::CreateTensorRTProviderOptions"]
[::std::mem::offset_of!(OrtApi, CreateTensorRTProviderOptions) - 1368usize];
["Offset of field: OrtApi::UpdateTensorRTProviderOptions"]
[::std::mem::offset_of!(OrtApi, UpdateTensorRTProviderOptions) - 1376usize];
["Offset of field: OrtApi::GetTensorRTProviderOptionsAsString"]
[::std::mem::offset_of!(OrtApi, GetTensorRTProviderOptionsAsString) - 1384usize];
["Offset of field: OrtApi::ReleaseTensorRTProviderOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseTensorRTProviderOptions) - 1392usize];
["Offset of field: OrtApi::EnableOrtCustomOps"]
[::std::mem::offset_of!(OrtApi, EnableOrtCustomOps) - 1400usize];
["Offset of field: OrtApi::RegisterAllocator"]
[::std::mem::offset_of!(OrtApi, RegisterAllocator) - 1408usize];
["Offset of field: OrtApi::UnregisterAllocator"]
[::std::mem::offset_of!(OrtApi, UnregisterAllocator) - 1416usize];
["Offset of field: OrtApi::IsSparseTensor"]
[::std::mem::offset_of!(OrtApi, IsSparseTensor) - 1424usize];
["Offset of field: OrtApi::CreateSparseTensorAsOrtValue"]
[::std::mem::offset_of!(OrtApi, CreateSparseTensorAsOrtValue) - 1432usize];
["Offset of field: OrtApi::FillSparseTensorCoo"]
[::std::mem::offset_of!(OrtApi, FillSparseTensorCoo) - 1440usize];
["Offset of field: OrtApi::FillSparseTensorCsr"]
[::std::mem::offset_of!(OrtApi, FillSparseTensorCsr) - 1448usize];
["Offset of field: OrtApi::FillSparseTensorBlockSparse"]
[::std::mem::offset_of!(OrtApi, FillSparseTensorBlockSparse) - 1456usize];
["Offset of field: OrtApi::CreateSparseTensorWithValuesAsOrtValue"]
[::std::mem::offset_of!(OrtApi, CreateSparseTensorWithValuesAsOrtValue) - 1464usize];
["Offset of field: OrtApi::UseCooIndices"]
[::std::mem::offset_of!(OrtApi, UseCooIndices) - 1472usize];
["Offset of field: OrtApi::UseCsrIndices"]
[::std::mem::offset_of!(OrtApi, UseCsrIndices) - 1480usize];
["Offset of field: OrtApi::UseBlockSparseIndices"]
[::std::mem::offset_of!(OrtApi, UseBlockSparseIndices) - 1488usize];
["Offset of field: OrtApi::GetSparseTensorFormat"]
[::std::mem::offset_of!(OrtApi, GetSparseTensorFormat) - 1496usize];
["Offset of field: OrtApi::GetSparseTensorValuesTypeAndShape"]
[::std::mem::offset_of!(OrtApi, GetSparseTensorValuesTypeAndShape) - 1504usize];
["Offset of field: OrtApi::GetSparseTensorValues"]
[::std::mem::offset_of!(OrtApi, GetSparseTensorValues) - 1512usize];
["Offset of field: OrtApi::GetSparseTensorIndicesTypeShape"]
[::std::mem::offset_of!(OrtApi, GetSparseTensorIndicesTypeShape) - 1520usize];
["Offset of field: OrtApi::GetSparseTensorIndices"]
[::std::mem::offset_of!(OrtApi, GetSparseTensorIndices) - 1528usize];
["Offset of field: OrtApi::HasValue"][::std::mem::offset_of!(OrtApi, HasValue) - 1536usize];
["Offset of field: OrtApi::KernelContext_GetGPUComputeStream"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetGPUComputeStream) - 1544usize];
["Offset of field: OrtApi::GetTensorMemoryInfo"]
[::std::mem::offset_of!(OrtApi, GetTensorMemoryInfo) - 1552usize];
["Offset of field: OrtApi::GetExecutionProviderApi"]
[::std::mem::offset_of!(OrtApi, GetExecutionProviderApi) - 1560usize];
["Offset of field: OrtApi::SessionOptionsSetCustomCreateThreadFn"]
[::std::mem::offset_of!(OrtApi, SessionOptionsSetCustomCreateThreadFn) - 1568usize];
["Offset of field: OrtApi::SessionOptionsSetCustomThreadCreationOptions"]
[::std::mem::offset_of!(OrtApi, SessionOptionsSetCustomThreadCreationOptions) - 1576usize];
["Offset of field: OrtApi::SessionOptionsSetCustomJoinThreadFn"]
[::std::mem::offset_of!(OrtApi, SessionOptionsSetCustomJoinThreadFn) - 1584usize];
["Offset of field: OrtApi::SetGlobalCustomCreateThreadFn"]
[::std::mem::offset_of!(OrtApi, SetGlobalCustomCreateThreadFn) - 1592usize];
["Offset of field: OrtApi::SetGlobalCustomThreadCreationOptions"]
[::std::mem::offset_of!(OrtApi, SetGlobalCustomThreadCreationOptions) - 1600usize];
["Offset of field: OrtApi::SetGlobalCustomJoinThreadFn"]
[::std::mem::offset_of!(OrtApi, SetGlobalCustomJoinThreadFn) - 1608usize];
["Offset of field: OrtApi::SynchronizeBoundInputs"]
[::std::mem::offset_of!(OrtApi, SynchronizeBoundInputs) - 1616usize];
["Offset of field: OrtApi::SynchronizeBoundOutputs"]
[::std::mem::offset_of!(OrtApi, SynchronizeBoundOutputs) - 1624usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_CUDA_V2"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider_CUDA_V2) - 1632usize];
["Offset of field: OrtApi::CreateCUDAProviderOptions"]
[::std::mem::offset_of!(OrtApi, CreateCUDAProviderOptions) - 1640usize];
["Offset of field: OrtApi::UpdateCUDAProviderOptions"]
[::std::mem::offset_of!(OrtApi, UpdateCUDAProviderOptions) - 1648usize];
["Offset of field: OrtApi::GetCUDAProviderOptionsAsString"]
[::std::mem::offset_of!(OrtApi, GetCUDAProviderOptionsAsString) - 1656usize];
["Offset of field: OrtApi::ReleaseCUDAProviderOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseCUDAProviderOptions) - 1664usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_MIGraphX"][::std::mem::offset_of!(
OrtApi,
SessionOptionsAppendExecutionProvider_MIGraphX
) - 1672usize];
["Offset of field: OrtApi::AddExternalInitializers"]
[::std::mem::offset_of!(OrtApi, AddExternalInitializers) - 1680usize];
["Offset of field: OrtApi::CreateOpAttr"]
[::std::mem::offset_of!(OrtApi, CreateOpAttr) - 1688usize];
["Offset of field: OrtApi::ReleaseOpAttr"]
[::std::mem::offset_of!(OrtApi, ReleaseOpAttr) - 1696usize];
["Offset of field: OrtApi::CreateOp"][::std::mem::offset_of!(OrtApi, CreateOp) - 1704usize];
["Offset of field: OrtApi::InvokeOp"][::std::mem::offset_of!(OrtApi, InvokeOp) - 1712usize];
["Offset of field: OrtApi::ReleaseOp"][::std::mem::offset_of!(OrtApi, ReleaseOp) - 1720usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider) - 1728usize];
["Offset of field: OrtApi::CopyKernelInfo"]
[::std::mem::offset_of!(OrtApi, CopyKernelInfo) - 1736usize];
["Offset of field: OrtApi::ReleaseKernelInfo"]
[::std::mem::offset_of!(OrtApi, ReleaseKernelInfo) - 1744usize];
["Offset of field: OrtApi::GetTrainingApi"]
[::std::mem::offset_of!(OrtApi, GetTrainingApi) - 1752usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_CANN"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider_CANN) - 1760usize];
["Offset of field: OrtApi::CreateCANNProviderOptions"]
[::std::mem::offset_of!(OrtApi, CreateCANNProviderOptions) - 1768usize];
["Offset of field: OrtApi::UpdateCANNProviderOptions"]
[::std::mem::offset_of!(OrtApi, UpdateCANNProviderOptions) - 1776usize];
["Offset of field: OrtApi::GetCANNProviderOptionsAsString"]
[::std::mem::offset_of!(OrtApi, GetCANNProviderOptionsAsString) - 1784usize];
["Offset of field: OrtApi::ReleaseCANNProviderOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseCANNProviderOptions) - 1792usize];
["Offset of field: OrtApi::MemoryInfoGetDeviceType"]
[::std::mem::offset_of!(OrtApi, MemoryInfoGetDeviceType) - 1800usize];
["Offset of field: OrtApi::UpdateEnvWithCustomLogLevel"]
[::std::mem::offset_of!(OrtApi, UpdateEnvWithCustomLogLevel) - 1808usize];
["Offset of field: OrtApi::SetGlobalIntraOpThreadAffinity"]
[::std::mem::offset_of!(OrtApi, SetGlobalIntraOpThreadAffinity) - 1816usize];
["Offset of field: OrtApi::RegisterCustomOpsLibrary_V2"]
[::std::mem::offset_of!(OrtApi, RegisterCustomOpsLibrary_V2) - 1824usize];
["Offset of field: OrtApi::RegisterCustomOpsUsingFunction"]
[::std::mem::offset_of!(OrtApi, RegisterCustomOpsUsingFunction) - 1832usize];
["Offset of field: OrtApi::KernelInfo_GetInputCount"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetInputCount) - 1840usize];
["Offset of field: OrtApi::KernelInfo_GetOutputCount"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetOutputCount) - 1848usize];
["Offset of field: OrtApi::KernelInfo_GetInputName"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetInputName) - 1856usize];
["Offset of field: OrtApi::KernelInfo_GetOutputName"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetOutputName) - 1864usize];
["Offset of field: OrtApi::KernelInfo_GetInputTypeInfo"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetInputTypeInfo) - 1872usize];
["Offset of field: OrtApi::KernelInfo_GetOutputTypeInfo"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetOutputTypeInfo) - 1880usize];
["Offset of field: OrtApi::KernelInfoGetAttribute_tensor"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAttribute_tensor) - 1888usize];
["Offset of field: OrtApi::HasSessionConfigEntry"]
[::std::mem::offset_of!(OrtApi, HasSessionConfigEntry) - 1896usize];
["Offset of field: OrtApi::GetSessionConfigEntry"]
[::std::mem::offset_of!(OrtApi, GetSessionConfigEntry) - 1904usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_Dnnl"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider_Dnnl) - 1912usize];
["Offset of field: OrtApi::CreateDnnlProviderOptions"]
[::std::mem::offset_of!(OrtApi, CreateDnnlProviderOptions) - 1920usize];
["Offset of field: OrtApi::UpdateDnnlProviderOptions"]
[::std::mem::offset_of!(OrtApi, UpdateDnnlProviderOptions) - 1928usize];
["Offset of field: OrtApi::GetDnnlProviderOptionsAsString"]
[::std::mem::offset_of!(OrtApi, GetDnnlProviderOptionsAsString) - 1936usize];
["Offset of field: OrtApi::ReleaseDnnlProviderOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseDnnlProviderOptions) - 1944usize];
["Offset of field: OrtApi::KernelInfo_GetNodeName"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetNodeName) - 1952usize];
["Offset of field: OrtApi::KernelInfo_GetLogger"]
[::std::mem::offset_of!(OrtApi, KernelInfo_GetLogger) - 1960usize];
["Offset of field: OrtApi::KernelContext_GetLogger"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetLogger) - 1968usize];
["Offset of field: OrtApi::Logger_LogMessage"]
[::std::mem::offset_of!(OrtApi, Logger_LogMessage) - 1976usize];
["Offset of field: OrtApi::Logger_GetLoggingSeverityLevel"]
[::std::mem::offset_of!(OrtApi, Logger_GetLoggingSeverityLevel) - 1984usize];
["Offset of field: OrtApi::KernelInfoGetConstantInput_tensor"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetConstantInput_tensor) - 1992usize];
["Offset of field: OrtApi::CastTypeInfoToOptionalTypeInfo"]
[::std::mem::offset_of!(OrtApi, CastTypeInfoToOptionalTypeInfo) - 2000usize];
["Offset of field: OrtApi::GetOptionalContainedTypeInfo"]
[::std::mem::offset_of!(OrtApi, GetOptionalContainedTypeInfo) - 2008usize];
["Offset of field: OrtApi::GetResizedStringTensorElementBuffer"]
[::std::mem::offset_of!(OrtApi, GetResizedStringTensorElementBuffer) - 2016usize];
["Offset of field: OrtApi::KernelContext_GetAllocator"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetAllocator) - 2024usize];
["Offset of field: OrtApi::GetBuildInfoString"]
[::std::mem::offset_of!(OrtApi, GetBuildInfoString) - 2032usize];
["Offset of field: OrtApi::CreateROCMProviderOptions"]
[::std::mem::offset_of!(OrtApi, CreateROCMProviderOptions) - 2040usize];
["Offset of field: OrtApi::UpdateROCMProviderOptions"]
[::std::mem::offset_of!(OrtApi, UpdateROCMProviderOptions) - 2048usize];
["Offset of field: OrtApi::GetROCMProviderOptionsAsString"]
[::std::mem::offset_of!(OrtApi, GetROCMProviderOptionsAsString) - 2056usize];
["Offset of field: OrtApi::ReleaseROCMProviderOptions"]
[::std::mem::offset_of!(OrtApi, ReleaseROCMProviderOptions) - 2064usize];
["Offset of field: OrtApi::CreateAndRegisterAllocatorV2"]
[::std::mem::offset_of!(OrtApi, CreateAndRegisterAllocatorV2) - 2072usize];
["Offset of field: OrtApi::RunAsync"][::std::mem::offset_of!(OrtApi, RunAsync) - 2080usize];
["Offset of field: OrtApi::UpdateTensorRTProviderOptionsWithValue"]
[::std::mem::offset_of!(OrtApi, UpdateTensorRTProviderOptionsWithValue) - 2088usize];
["Offset of field: OrtApi::GetTensorRTProviderOptionsByName"]
[::std::mem::offset_of!(OrtApi, GetTensorRTProviderOptionsByName) - 2096usize];
["Offset of field: OrtApi::UpdateCUDAProviderOptionsWithValue"]
[::std::mem::offset_of!(OrtApi, UpdateCUDAProviderOptionsWithValue) - 2104usize];
["Offset of field: OrtApi::GetCUDAProviderOptionsByName"]
[::std::mem::offset_of!(OrtApi, GetCUDAProviderOptionsByName) - 2112usize];
["Offset of field: OrtApi::KernelContext_GetResource"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetResource) - 2120usize];
["Offset of field: OrtApi::SetUserLoggingFunction"]
[::std::mem::offset_of!(OrtApi, SetUserLoggingFunction) - 2128usize];
["Offset of field: OrtApi::ShapeInferContext_GetInputCount"]
[::std::mem::offset_of!(OrtApi, ShapeInferContext_GetInputCount) - 2136usize];
["Offset of field: OrtApi::ShapeInferContext_GetInputTypeShape"]
[::std::mem::offset_of!(OrtApi, ShapeInferContext_GetInputTypeShape) - 2144usize];
["Offset of field: OrtApi::ShapeInferContext_GetAttribute"]
[::std::mem::offset_of!(OrtApi, ShapeInferContext_GetAttribute) - 2152usize];
["Offset of field: OrtApi::ShapeInferContext_SetOutputTypeShape"]
[::std::mem::offset_of!(OrtApi, ShapeInferContext_SetOutputTypeShape) - 2160usize];
["Offset of field: OrtApi::SetSymbolicDimensions"]
[::std::mem::offset_of!(OrtApi, SetSymbolicDimensions) - 2168usize];
["Offset of field: OrtApi::ReadOpAttr"][::std::mem::offset_of!(OrtApi, ReadOpAttr) - 2176usize];
["Offset of field: OrtApi::SetDeterministicCompute"]
[::std::mem::offset_of!(OrtApi, SetDeterministicCompute) - 2184usize];
["Offset of field: OrtApi::KernelContext_ParallelFor"]
[::std::mem::offset_of!(OrtApi, KernelContext_ParallelFor) - 2192usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO_V2"][::std::mem::offset_of!(
OrtApi,
SessionOptionsAppendExecutionProvider_OpenVINO_V2
) - 2200usize];
["Offset of field: OrtApi::SessionOptionsAppendExecutionProvider_VitisAI"]
[::std::mem::offset_of!(OrtApi, SessionOptionsAppendExecutionProvider_VitisAI) - 2208usize];
["Offset of field: OrtApi::KernelContext_GetScratchBuffer"]
[::std::mem::offset_of!(OrtApi, KernelContext_GetScratchBuffer) - 2216usize];
["Offset of field: OrtApi::KernelInfoGetAllocator"]
[::std::mem::offset_of!(OrtApi, KernelInfoGetAllocator) - 2224usize];
["Offset of field: OrtApi::AddExternalInitializersFromFilesInMemory"]
[::std::mem::offset_of!(OrtApi, AddExternalInitializersFromFilesInMemory) - 2232usize];
["Offset of field: OrtApi::CreateLoraAdapter"]
[::std::mem::offset_of!(OrtApi, CreateLoraAdapter) - 2240usize];
["Offset of field: OrtApi::CreateLoraAdapterFromArray"]
[::std::mem::offset_of!(OrtApi, CreateLoraAdapterFromArray) - 2248usize];
["Offset of field: OrtApi::ReleaseLoraAdapter"]
[::std::mem::offset_of!(OrtApi, ReleaseLoraAdapter) - 2256usize];
["Offset of field: OrtApi::RunOptionsAddActiveLoraAdapter"]
[::std::mem::offset_of!(OrtApi, RunOptionsAddActiveLoraAdapter) - 2264usize];
["Offset of field: OrtApi::SetEpDynamicOptions"]
[::std::mem::offset_of!(OrtApi, SetEpDynamicOptions) - 2272usize];
};
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum OrtCustomOpInputOutputCharacteristic {
INPUT_OUTPUT_REQUIRED = 0,
INPUT_OUTPUT_OPTIONAL = 1,
INPUT_OUTPUT_VARIADIC = 2,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OrtCustomOp {
pub version: u32,
pub CreateKernel: ::std::option::Option<
unsafe extern "C" fn(
op: *const OrtCustomOp,
api: *const OrtApi,
info: *const OrtKernelInfo,
) -> *mut ::std::os::raw::c_void,
>,
pub GetName: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> *const ::std::os::raw::c_char,
>,
pub GetExecutionProviderType: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> *const ::std::os::raw::c_char,
>,
pub GetInputType: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType,
>,
pub GetInputTypeCount:
::std::option::Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> usize>,
pub GetOutputType: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> ONNXTensorElementDataType,
>,
pub GetOutputTypeCount:
::std::option::Option<unsafe extern "C" fn(op: *const OrtCustomOp) -> usize>,
pub KernelCompute: ::std::option::Option<
unsafe extern "C" fn(
op_kernel: *mut ::std::os::raw::c_void,
context: *mut OrtKernelContext,
),
>,
pub KernelDestroy:
::std::option::Option<unsafe extern "C" fn(op_kernel: *mut ::std::os::raw::c_void)>,
pub GetInputCharacteristic: ::std::option::Option<
unsafe extern "C" fn(
op: *const OrtCustomOp,
index: usize,
) -> OrtCustomOpInputOutputCharacteristic,
>,
pub GetOutputCharacteristic: ::std::option::Option<
unsafe extern "C" fn(
op: *const OrtCustomOp,
index: usize,
) -> OrtCustomOpInputOutputCharacteristic,
>,
pub GetInputMemoryType: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp, index: usize) -> OrtMemType,
>,
pub GetVariadicInputMinArity: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> ::std::os::raw::c_int,
>,
pub GetVariadicInputHomogeneity: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> ::std::os::raw::c_int,
>,
pub GetVariadicOutputMinArity: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> ::std::os::raw::c_int,
>,
pub GetVariadicOutputHomogeneity: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> ::std::os::raw::c_int,
>,
pub CreateKernelV2: ::std::option::Option<
unsafe extern "C" fn(
op: *const OrtCustomOp,
api: *const OrtApi,
info: *const OrtKernelInfo,
kernel: *mut *mut ::std::os::raw::c_void,
) -> OrtStatusPtr,
>,
pub KernelComputeV2: ::std::option::Option<
unsafe extern "C" fn(
op_kernel: *mut ::std::os::raw::c_void,
context: *mut OrtKernelContext,
) -> OrtStatusPtr,
>,
pub InferOutputShapeFn: ::std::option::Option<
unsafe extern "C" fn(
op: *const OrtCustomOp,
arg1: *mut OrtShapeInferContext,
) -> OrtStatusPtr,
>,
pub GetStartVersion: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> ::std::os::raw::c_int,
>,
pub GetEndVersion: ::std::option::Option<
unsafe extern "C" fn(op: *const OrtCustomOp) -> ::std::os::raw::c_int,
>,
pub GetMayInplace: ::std::option::Option<
unsafe extern "C" fn(
input_index: *mut *mut ::std::os::raw::c_int,
output_index: *mut *mut ::std::os::raw::c_int,
) -> usize,
>,
pub ReleaseMayInplace: ::std::option::Option<
unsafe extern "C" fn(
input_index: *mut ::std::os::raw::c_int,
output_index: *mut ::std::os::raw::c_int,
),
>,
pub GetAliasMap: ::std::option::Option<
unsafe extern "C" fn(
input_index: *mut *mut ::std::os::raw::c_int,
output_index: *mut *mut ::std::os::raw::c_int,
) -> usize,
>,
pub ReleaseAliasMap: ::std::option::Option<
unsafe extern "C" fn(
input_index: *mut ::std::os::raw::c_int,
output_index: *mut ::std::os::raw::c_int,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of OrtCustomOp"][::std::mem::size_of::<OrtCustomOp>() - 208usize];
["Alignment of OrtCustomOp"][::std::mem::align_of::<OrtCustomOp>() - 8usize];
["Offset of field: OrtCustomOp::version"]
[::std::mem::offset_of!(OrtCustomOp, version) - 0usize];
["Offset of field: OrtCustomOp::CreateKernel"]
[::std::mem::offset_of!(OrtCustomOp, CreateKernel) - 8usize];
["Offset of field: OrtCustomOp::GetName"]
[::std::mem::offset_of!(OrtCustomOp, GetName) - 16usize];
["Offset of field: OrtCustomOp::GetExecutionProviderType"]
[::std::mem::offset_of!(OrtCustomOp, GetExecutionProviderType) - 24usize];
["Offset of field: OrtCustomOp::GetInputType"]
[::std::mem::offset_of!(OrtCustomOp, GetInputType) - 32usize];
["Offset of field: OrtCustomOp::GetInputTypeCount"]
[::std::mem::offset_of!(OrtCustomOp, GetInputTypeCount) - 40usize];
["Offset of field: OrtCustomOp::GetOutputType"]
[::std::mem::offset_of!(OrtCustomOp, GetOutputType) - 48usize];
["Offset of field: OrtCustomOp::GetOutputTypeCount"]
[::std::mem::offset_of!(OrtCustomOp, GetOutputTypeCount) - 56usize];
["Offset of field: OrtCustomOp::KernelCompute"]
[::std::mem::offset_of!(OrtCustomOp, KernelCompute) - 64usize];
["Offset of field: OrtCustomOp::KernelDestroy"]
[::std::mem::offset_of!(OrtCustomOp, KernelDestroy) - 72usize];
["Offset of field: OrtCustomOp::GetInputCharacteristic"]
[::std::mem::offset_of!(OrtCustomOp, GetInputCharacteristic) - 80usize];
["Offset of field: OrtCustomOp::GetOutputCharacteristic"]
[::std::mem::offset_of!(OrtCustomOp, GetOutputCharacteristic) - 88usize];
["Offset of field: OrtCustomOp::GetInputMemoryType"]
[::std::mem::offset_of!(OrtCustomOp, GetInputMemoryType) - 96usize];
["Offset of field: OrtCustomOp::GetVariadicInputMinArity"]
[::std::mem::offset_of!(OrtCustomOp, GetVariadicInputMinArity) - 104usize];
["Offset of field: OrtCustomOp::GetVariadicInputHomogeneity"]
[::std::mem::offset_of!(OrtCustomOp, GetVariadicInputHomogeneity) - 112usize];
["Offset of field: OrtCustomOp::GetVariadicOutputMinArity"]
[::std::mem::offset_of!(OrtCustomOp, GetVariadicOutputMinArity) - 120usize];
["Offset of field: OrtCustomOp::GetVariadicOutputHomogeneity"]
[::std::mem::offset_of!(OrtCustomOp, GetVariadicOutputHomogeneity) - 128usize];
["Offset of field: OrtCustomOp::CreateKernelV2"]
[::std::mem::offset_of!(OrtCustomOp, CreateKernelV2) - 136usize];
["Offset of field: OrtCustomOp::KernelComputeV2"]
[::std::mem::offset_of!(OrtCustomOp, KernelComputeV2) - 144usize];
["Offset of field: OrtCustomOp::InferOutputShapeFn"]
[::std::mem::offset_of!(OrtCustomOp, InferOutputShapeFn) - 152usize];
["Offset of field: OrtCustomOp::GetStartVersion"]
[::std::mem::offset_of!(OrtCustomOp, GetStartVersion) - 160usize];
["Offset of field: OrtCustomOp::GetEndVersion"]
[::std::mem::offset_of!(OrtCustomOp, GetEndVersion) - 168usize];
["Offset of field: OrtCustomOp::GetMayInplace"]
[::std::mem::offset_of!(OrtCustomOp, GetMayInplace) - 176usize];
["Offset of field: OrtCustomOp::ReleaseMayInplace"]
[::std::mem::offset_of!(OrtCustomOp, ReleaseMayInplace) - 184usize];
["Offset of field: OrtCustomOp::GetAliasMap"]
[::std::mem::offset_of!(OrtCustomOp, GetAliasMap) - 192usize];
["Offset of field: OrtCustomOp::ReleaseAliasMap"]
[::std::mem::offset_of!(OrtCustomOp, ReleaseAliasMap) - 200usize];
};
unsafe extern "C" {
pub fn OrtSessionOptionsAppendExecutionProvider_CUDA(
options: *mut OrtSessionOptions,
device_id: ::std::os::raw::c_int,
) -> OrtStatusPtr;
}
unsafe extern "C" {
pub fn OrtSessionOptionsAppendExecutionProvider_ROCM(
options: *mut OrtSessionOptions,
device_id: ::std::os::raw::c_int,
) -> OrtStatusPtr;
}
unsafe extern "C" {
pub fn OrtSessionOptionsAppendExecutionProvider_MIGraphX(
options: *mut OrtSessionOptions,
device_id: ::std::os::raw::c_int,
) -> OrtStatusPtr;
}
unsafe extern "C" {
pub fn OrtSessionOptionsAppendExecutionProvider_Dnnl(
options: *mut OrtSessionOptions,
use_arena: ::std::os::raw::c_int,
) -> OrtStatusPtr;
}
unsafe extern "C" {
pub fn OrtSessionOptionsAppendExecutionProvider_Tensorrt(
options: *mut OrtSessionOptions,
device_id: ::std::os::raw::c_int,
) -> OrtStatusPtr;
}
pub type __builtin_va_list = *mut ::std::os::raw::c_char;
pub type __uint128_t = u128;