#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
storage: Storage,
align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn new(storage: Storage) -> Self {
Self { storage, align: [] }
}
#[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];
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 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];
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 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 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);
}
}
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>);
impl<T> __IncompleteArrayField<T> {
#[inline]
pub fn new() -> Self {
__IncompleteArrayField(::std::marker::PhantomData)
}
#[inline]
pub unsafe fn as_ptr(&self) -> *const T {
::std::mem::transmute(self)
}
#[inline]
pub unsafe fn as_mut_ptr(&mut self) -> *mut T {
::std::mem::transmute(self)
}
#[inline]
pub unsafe fn as_slice(&self, len: usize) -> &[T] {
::std::slice::from_raw_parts(self.as_ptr(), len)
}
#[inline]
pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
}
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
fmt.write_str("__IncompleteArrayField")
}
}
impl<T> ::std::clone::Clone for __IncompleteArrayField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
}
}
impl<T> ::std::marker::Copy for __IncompleteArrayField<T> {}
pub const _STDINT_H: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201505;
pub const __STDC_NO_THREADS__: u32 = 1;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 23;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const _BITS_WCHAR_H: u32 = 1;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const __GNUC_VA_LIST: u32 = 1;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_GET_FLAGS: u32 = 4278190080;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_SET_FLAG: u32 = 4278190081;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_CLR_FLAG: u32 = 4278190082;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_EOM: u32 = 4278190083;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_PUSH_STATE: u32 = 4278190084;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_POP_STATE: u32 = 4278190085;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_INVOKE: u32 = 4278190086;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_READHDR: u32 = 4278190087;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_WRITEHDR: u32 = 4278190088;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_MODPATH: u32 = 4278190089;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_GET_HDR_BUF: u32 = 4278190090;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_GET_DATA_BUF: u32 = 4278190091;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_PUT_DATA_BUF: u32 = 4278190092;
pub const RUNTIME_API_PIPE_CNTL_OPCODE_NOP: u32 = 4294967294;
pub const RUNTIME_API_ASYNC_CNTL_OPCODE_SET_WAIT: u32 = 0;
pub const RUNTIME_API_ASYNC_CNTL_OPCODE_NOTIFY_WAIT: u32 = 1;
pub const RUNTIME_API_ASYNC_CNTL_OPCODE_RETCODE: u32 = 2;
pub const RUNTIME_API_ASYNC_CNTL_OPCODE_CANCEL: u32 = 3;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
pub __bindgen_padding_0: u64,
pub __clang_max_align_nonce2: f64,
}
#[test]
fn bindgen_test_layout_max_align_t() {
assert_eq!(
::std::mem::size_of::<max_align_t>(),
32usize,
concat!("Size of: ", stringify!(max_align_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce2)
)
);
}
pub type int_least8_t = ::std::os::raw::c_schar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type int_least32_t = ::std::os::raw::c_int;
pub type int_least64_t = ::std::os::raw::c_long;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type uint_least64_t = ::std::os::raw::c_ulong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub type runtime_api_pipe_id_t = u16;
pub type runtime_api_pipe_t = u32;
pub type runtime_api_pipe_flags_t = u32;
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_POS),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_INPUT_CHECK_NEG),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_POS),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_RUNTIME_API_PIPE_OUTPUT_CHECK_NEG),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_flags_dir1 {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_flags_dir1() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_flags_dir1>(),
0usize,
concat!("Size of: ", stringify!(__const_checker_eq_flags_dir1))
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_flags_dir1>(),
4usize,
concat!("Alignment of ", stringify!(__const_checker_eq_flags_dir1))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_flags_dir1>())).test as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_flags_dir1),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_flags_dir2 {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_flags_dir2() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_flags_dir2>(),
0usize,
concat!("Size of: ", stringify!(__const_checker_eq_flags_dir2))
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_flags_dir2>(),
4usize,
concat!("Alignment of ", stringify!(__const_checker_eq_flags_dir2))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_flags_dir2>())).test as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_flags_dir2),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_flags_persist {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_flags_persist() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_flags_persist>(),
0usize,
concat!("Size of: ", stringify!(__const_checker_eq_flags_persist))
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_flags_persist>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq_flags_persist)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_flags_persist>())).test as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_flags_persist),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq___non_module_related_get_flags__ {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq___non_module_related_get_flags__() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq___non_module_related_get_flags__>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq___non_module_related_get_flags__)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq___non_module_related_get_flags__>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq___non_module_related_get_flags__)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq___non_module_related_get_flags__>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq___non_module_related_get_flags__),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq___non_module_related_set_flag__ {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq___non_module_related_set_flag__() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq___non_module_related_set_flag__>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq___non_module_related_set_flag__)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq___non_module_related_set_flag__>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq___non_module_related_set_flag__)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq___non_module_related_set_flag__>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq___non_module_related_set_flag__),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq___non_module_related_clr_flag__ {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq___non_module_related_clr_flag__() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq___non_module_related_clr_flag__>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq___non_module_related_clr_flag__)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq___non_module_related_clr_flag__>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq___non_module_related_clr_flag__)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq___non_module_related_clr_flag__>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq___non_module_related_clr_flag__),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq___non_module_related_eom__ {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq___non_module_related_eom__() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq___non_module_related_eom__>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq___non_module_related_eom__)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq___non_module_related_eom__>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq___non_module_related_eom__)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq___non_module_related_eom__>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq___non_module_related_eom__),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq___non_module_related_push_state__ {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq___non_module_related_push_state__() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq___non_module_related_push_state__>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq___non_module_related_push_state__)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq___non_module_related_push_state__>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq___non_module_related_push_state__)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq___non_module_related_push_state__>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq___non_module_related_push_state__),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq___non_module_related_pop_state__ {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq___non_module_related_pop_state__() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq___non_module_related_pop_state__>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq___non_module_related_pop_state__)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq___non_module_related_pop_state__>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq___non_module_related_pop_state__)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq___non_module_related_pop_state__>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq___non_module_related_pop_state__),
"::",
stringify!(test)
)
);
}
pub type runtime_api_scope_token_t = u32;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct runtime_api_scope_ready_event_t {
pub fd: ::std::os::raw::c_int,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
pub timeout: i32,
}
#[test]
fn bindgen_test_layout_runtime_api_scope_ready_event_t() {
assert_eq!(
::std::mem::size_of::<runtime_api_scope_ready_event_t>(),
12usize,
concat!("Size of: ", stringify!(runtime_api_scope_ready_event_t))
);
assert_eq!(
::std::mem::align_of::<runtime_api_scope_ready_event_t>(),
4usize,
concat!("Alignment of ", stringify!(runtime_api_scope_ready_event_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_ready_event_t>())).fd as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_ready_event_t),
"::",
stringify!(fd)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_ready_event_t>())).timeout as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_ready_event_t),
"::",
stringify!(timeout)
)
);
}
impl runtime_api_scope_ready_event_t {
#[inline]
pub fn read(&self) -> u32 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
}
#[inline]
pub fn set_read(&mut self, val: u32) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(0usize, 1u8, val as u64)
}
}
#[inline]
pub fn write(&self) -> u32 {
unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
}
#[inline]
pub fn set_write(&mut self, val: u32) {
unsafe {
let val: u32 = ::std::mem::transmute(val);
self._bitfield_1.set(1usize, 1u8, val as u64)
}
}
#[inline]
pub fn new_bitfield_1(read: u32, write: u32) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let read: u32 = unsafe { ::std::mem::transmute(read) };
read as u64
});
__bindgen_bitfield_unit.set(1usize, 1u8, {
let write: u32 = unsafe { ::std::mem::transmute(write) };
write as u64
});
__bindgen_bitfield_unit
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct runtime_api_scope_entity_t {
pub data: *mut ::std::os::raw::c_void,
pub copy_func: ::std::option::Option<
unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
pub free_func: ::std::option::Option<
unsafe extern "C" fn(ptr: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
pub open_func: ::std::option::Option<
unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>,
pub read_func: ::std::option::Option<
unsafe extern "C" fn(
handle: *mut ::std::os::raw::c_void,
buffer: *mut ::std::os::raw::c_void,
bufsize: usize,
) -> usize,
>,
pub eos_func: ::std::option::Option<
unsafe extern "C" fn(handle: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
pub event_func: ::std::option::Option<
unsafe extern "C" fn(
handle: *mut ::std::os::raw::c_void,
event_buf: *mut runtime_api_scope_ready_event_t,
) -> ::std::os::raw::c_int,
>,
pub close_func: ::std::option::Option<
unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
}
#[test]
fn bindgen_test_layout_runtime_api_scope_entity_t() {
assert_eq!(
::std::mem::size_of::<runtime_api_scope_entity_t>(),
64usize,
concat!("Size of: ", stringify!(runtime_api_scope_entity_t))
);
assert_eq!(
::std::mem::align_of::<runtime_api_scope_entity_t>(),
8usize,
concat!("Alignment of ", stringify!(runtime_api_scope_entity_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<runtime_api_scope_entity_t>())).data as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).copy_func as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(copy_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).free_func as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(free_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).open_func as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(open_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).read_func as *const _ as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(read_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).eos_func as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(eos_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).event_func as *const _ as usize
},
48usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(event_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_entity_t>())).close_func as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_entity_t),
"::",
stringify!(close_func)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct runtime_api_scope_token_data_request_t {
pub size: usize,
pub context: *mut ::std::os::raw::c_void,
pub data_handler: ::std::option::Option<
unsafe extern "C" fn(
context: *mut ::std::os::raw::c_void,
data: *const ::std::os::raw::c_void,
count: usize,
) -> usize,
>,
}
#[test]
fn bindgen_test_layout_runtime_api_scope_token_data_request_t() {
assert_eq!(
::std::mem::size_of::<runtime_api_scope_token_data_request_t>(),
24usize,
concat!(
"Size of: ",
stringify!(runtime_api_scope_token_data_request_t)
)
);
assert_eq!(
::std::mem::align_of::<runtime_api_scope_token_data_request_t>(),
8usize,
concat!(
"Alignment of ",
stringify!(runtime_api_scope_token_data_request_t)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_token_data_request_t>())).size as *const _
as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_token_data_request_t),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_token_data_request_t>())).context as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_token_data_request_t),
"::",
stringify!(context)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_scope_token_data_request_t>())).data_handler
as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_scope_token_data_request_t),
"::",
stringify!(data_handler)
)
);
}
pub type runtime_api_pipe_type_callback_t = ::std::option::Option<
unsafe extern "C" fn(
pipe: runtime_api_pipe_t,
type_name: *const ::std::os::raw::c_char,
data: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
pub const RUNTIME_API_INIT_RESULT_SYNC: _bindgen_ty_1 = 0;
pub const RUNTIME_API_INIT_RESULT_ASYNC: _bindgen_ty_1 = 1;
pub type _bindgen_ty_1 = u32;
#[repr(C)]
#[derive(Debug)]
pub struct __const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC {
pub test: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout___const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC() {
assert_eq!(
::std::mem::size_of::<__const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC>(),
0usize,
concat!(
"Size of: ",
stringify!(__const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC)
)
);
assert_eq!(
::std::mem::align_of::<__const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC>(),
4usize,
concat!(
"Alignment of ",
stringify!(__const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<__const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC>())).test
as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(__const_checker_eq_RUNTIME_API_INIT_RESULT_SYNC),
"::",
stringify!(test)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _runtime_api_async_task_handle_t {
_unused: [u8; 0],
}
pub type runtime_api_async_handle_t = _runtime_api_async_task_handle_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct runtime_api_address_table_t {
pub define: ::std::option::Option<
unsafe extern "C" fn(
name: *const ::std::os::raw::c_char,
flag: runtime_api_pipe_flags_t,
type_expr: *const ::std::os::raw::c_char,
) -> runtime_api_pipe_t,
>,
pub set_type_hook: ::std::option::Option<
unsafe extern "C" fn(
pipe: runtime_api_pipe_t,
callback: runtime_api_pipe_type_callback_t,
data: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub read: ::std::option::Option<
unsafe extern "C" fn(
pipe: runtime_api_pipe_t,
buffer: *mut ::std::os::raw::c_void,
nbytes: usize,
) -> usize,
>,
pub write: ::std::option::Option<
unsafe extern "C" fn(
pipe: runtime_api_pipe_t,
data: *const ::std::os::raw::c_void,
nbytes: usize,
) -> usize,
>,
pub write_scope_token: ::std::option::Option<
unsafe extern "C" fn(
pipe: runtime_api_pipe_t,
token: runtime_api_scope_token_t,
data_req: *const runtime_api_scope_token_data_request_t,
) -> ::std::os::raw::c_int,
>,
pub log_write: ::std::option::Option<
unsafe extern "C" fn(
level: ::std::os::raw::c_int,
file: *const ::std::os::raw::c_char,
function: *const ::std::os::raw::c_char,
line: ::std::os::raw::c_int,
fmt: *const ::std::os::raw::c_char,
ap: *mut __va_list_tag,
),
>,
pub trap: ::std::option::Option<unsafe extern "C" fn(id: ::std::os::raw::c_int)>,
pub eof: ::std::option::Option<
unsafe extern "C" fn(pipe: runtime_api_pipe_t) -> ::std::os::raw::c_int,
>,
pub cntl: ::std::option::Option<
unsafe extern "C" fn(pipe: runtime_api_pipe_t, opcode: u32, ap: *mut __va_list_tag)
-> ::std::os::raw::c_int,
>,
pub get_module_func: ::std::option::Option<
unsafe extern "C" fn(
mod_name: *const ::std::os::raw::c_char,
func_name: *const ::std::os::raw::c_char,
) -> runtime_api_pipe_t,
>,
pub mod_open:
::std::option::Option<unsafe extern "C" fn(mod_: *const ::std::os::raw::c_char) -> u8>,
pub mod_cntl_prefix: ::std::option::Option<
unsafe extern "C" fn(path: *const ::std::os::raw::c_char, result: *mut u8)
-> ::std::os::raw::c_int,
>,
pub version: ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
pub async_cntl: ::std::option::Option<
unsafe extern "C" fn(
async_handle: *mut runtime_api_async_handle_t,
opcode: u32,
ap: *mut __va_list_tag,
) -> ::std::os::raw::c_int,
>,
}
#[test]
fn bindgen_test_layout_runtime_api_address_table_t() {
assert_eq!(
::std::mem::size_of::<runtime_api_address_table_t>(),
112usize,
concat!("Size of: ", stringify!(runtime_api_address_table_t))
);
assert_eq!(
::std::mem::align_of::<runtime_api_address_table_t>(),
8usize,
concat!("Alignment of ", stringify!(runtime_api_address_table_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).define as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(define)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).set_type_hook as *const _
as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(set_type_hook)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).read as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(read)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).write as *const _ as usize
},
24usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(write)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).write_scope_token as *const _
as usize
},
32usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(write_scope_token)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).log_write as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(log_write)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).trap as *const _ as usize
},
48usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(trap)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<runtime_api_address_table_t>())).eof as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(eof)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).cntl as *const _ as usize
},
64usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(cntl)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).get_module_func as *const _
as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(get_module_func)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).mod_open as *const _ as usize
},
80usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(mod_open)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).mod_cntl_prefix as *const _
as usize
},
88usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(mod_cntl_prefix)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).version as *const _ as usize
},
96usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_address_table_t>())).async_cntl as *const _ as usize
},
104usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_address_table_t),
"::",
stringify!(async_cntl)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct runtime_api_servlet_def_t {
pub size: usize,
pub desc: *const ::std::os::raw::c_char,
pub version: u32,
pub init: ::std::option::Option<
unsafe extern "C" fn(
argc: u32,
argv: *const *const ::std::os::raw::c_char,
data: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub exec: ::std::option::Option<
unsafe extern "C" fn(data: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
pub unload: ::std::option::Option<
unsafe extern "C" fn(data: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>,
pub async_buf_size: u32,
pub async_setup: ::std::option::Option<
unsafe extern "C" fn(
task: *mut runtime_api_async_handle_t,
async_buf: *mut ::std::os::raw::c_void,
data: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub async_exec: ::std::option::Option<
unsafe extern "C" fn(
task: *mut runtime_api_async_handle_t,
async_data: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub async_cleanup: ::std::option::Option<
unsafe extern "C" fn(
task: *mut runtime_api_async_handle_t,
async_data: *mut ::std::os::raw::c_void,
data: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
}
#[test]
fn bindgen_test_layout_runtime_api_servlet_def_t() {
assert_eq!(
::std::mem::size_of::<runtime_api_servlet_def_t>(),
80usize,
concat!("Size of: ", stringify!(runtime_api_servlet_def_t))
);
assert_eq!(
::std::mem::align_of::<runtime_api_servlet_def_t>(),
8usize,
concat!("Alignment of ", stringify!(runtime_api_servlet_def_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<runtime_api_servlet_def_t>())).size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<runtime_api_servlet_def_t>())).desc as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(desc)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_servlet_def_t>())).version as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<runtime_api_servlet_def_t>())).init as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(init)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<runtime_api_servlet_def_t>())).exec as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(exec)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_servlet_def_t>())).unload as *const _ as usize
},
40usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(unload)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_servlet_def_t>())).async_buf_size as *const _
as usize
},
48usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(async_buf_size)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_servlet_def_t>())).async_setup as *const _ as usize
},
56usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(async_setup)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_servlet_def_t>())).async_exec as *const _ as usize
},
64usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(async_exec)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<runtime_api_servlet_def_t>())).async_cleanup as *const _ as usize
},
72usize,
concat!(
"Offset of field: ",
stringify!(runtime_api_servlet_def_t),
"::",
stringify!(async_cleanup)
)
);
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
assert_eq!(
::std::mem::size_of::<__va_list_tag>(),
24usize,
concat!("Size of: ", stringify!(__va_list_tag))
);
assert_eq!(
::std::mem::align_of::<__va_list_tag>(),
8usize,
concat!("Alignment of ", stringify!(__va_list_tag))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(gp_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(fp_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(overflow_arg_area)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(reg_save_area)
)
);
}