1 #![allow(
2 dead_code,
3 non_snake_case,
4 non_camel_case_types,
5 non_upper_case_globals
6 )]
7
8 #[repr(C)]
9 #[repr(align(64))]
10 #[derive(Copy, Clone)]
11 pub struct rte_mbuf {
12 pub __bindgen_anon_1: rte_mbuf__bindgen_ty_1,
13 }
14 #[repr(C)]
15 #[repr(align(1))]
16 #[derive(Copy, Clone)]
17 pub struct rte_mbuf__bindgen_ty_1 {
18 pub bindgen_union_field: [u8; 0usize],
19 }
20 #[test]
bindgen_test_layout_rte_mbuf__bindgen_ty_1null21 fn bindgen_test_layout_rte_mbuf__bindgen_ty_1() {
22 assert_eq!(
23 ::std::mem::size_of::<rte_mbuf__bindgen_ty_1>(),
24 0usize,
25 concat!("Size of: ", stringify!(rte_mbuf__bindgen_ty_1))
26 );
27 assert_eq!(
28 ::std::mem::align_of::<rte_mbuf__bindgen_ty_1>(),
29 1usize,
30 concat!("Alignment of ", stringify!(rte_mbuf__bindgen_ty_1))
31 );
32 }
33 impl Default for rte_mbuf__bindgen_ty_1 {
defaultnull34 fn default() -> Self {
35 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
36 unsafe {
37 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
38 s.assume_init()
39 }
40 }
41 }
42 #[test]
bindgen_test_layout_rte_mbufnull43 fn bindgen_test_layout_rte_mbuf() {
44 assert_eq!(
45 ::std::mem::size_of::<rte_mbuf>(),
46 0usize,
47 concat!("Size of: ", stringify!(rte_mbuf))
48 );
49 assert_eq!(
50 ::std::mem::align_of::<rte_mbuf>(),
51 64usize,
52 concat!("Alignment of ", stringify!(rte_mbuf))
53 );
54 }
55 impl Default for rte_mbuf {
defaultnull56 fn default() -> Self {
57 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
58 unsafe {
59 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
60 s.assume_init()
61 }
62 }
63 }
64