1#[derive(PartialEq, Copy, Clone, Hash, Debug, Default)]
4#[repr(C)]
5pub struct __BindgenComplex<T> {
6 pub re: T,
7 pub im: T,
8}
9pub type size_t = ::std::os::raw::c_ulong;
10pub type wchar_t = ::std::os::raw::c_int;
11pub type max_align_t = f64;
12#[repr(C)]
13#[derive(Debug, Copy, Clone)]
14pub struct _GoString_ {
15 pub p: *const ::std::os::raw::c_char,
16 pub n: isize,
17}
18#[test]
19fn bindgen_test_layout__GoString_() {
20 assert_eq!(
21 ::std::mem::size_of::<_GoString_>(),
22 16usize,
23 concat!("Size of: ", stringify!(_GoString_))
24 );
25 assert_eq!(
26 ::std::mem::align_of::<_GoString_>(),
27 8usize,
28 concat!("Alignment of ", stringify!(_GoString_))
29 );
30 fn test_field_p() {
31 assert_eq!(
32 unsafe {
33 let uninit = ::std::mem::MaybeUninit::<_GoString_>::uninit();
34 let ptr = uninit.as_ptr();
35 ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize
36 },
37 0usize,
38 concat!(
39 "Offset of field: ",
40 stringify!(_GoString_),
41 "::",
42 stringify!(p)
43 )
44 );
45 }
46 test_field_p();
47 fn test_field_n() {
48 assert_eq!(
49 unsafe {
50 let uninit = ::std::mem::MaybeUninit::<_GoString_>::uninit();
51 let ptr = uninit.as_ptr();
52 ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize
53 },
54 8usize,
55 concat!(
56 "Offset of field: ",
57 stringify!(_GoString_),
58 "::",
59 stringify!(n)
60 )
61 );
62 }
63 test_field_n();
64}
65pub type GoInt8 = ::std::os::raw::c_schar;
66pub type GoUint8 = ::std::os::raw::c_uchar;
67pub type GoInt16 = ::std::os::raw::c_short;
68pub type GoUint16 = ::std::os::raw::c_ushort;
69pub type GoInt32 = ::std::os::raw::c_int;
70pub type GoUint32 = ::std::os::raw::c_uint;
71pub type GoInt64 = ::std::os::raw::c_longlong;
72pub type GoUint64 = ::std::os::raw::c_ulonglong;
73pub type GoInt = GoInt64;
74pub type GoUint = GoUint64;
75pub type GoUintptr = ::std::os::raw::c_ulong;
76pub type GoFloat32 = f32;
77pub type GoFloat64 = f64;
78pub type GoComplex64 = __BindgenComplex<f32>;
79pub type GoComplex128 = __BindgenComplex<f64>;
80pub type _check_for_64_bit_pointer_matching_GoInt = [::std::os::raw::c_char; 1usize];
81pub type GoString = _GoString_;
82pub type GoMap = *mut ::std::os::raw::c_void;
83pub type GoChan = *mut ::std::os::raw::c_void;
84#[repr(C)]
85#[derive(Debug, Copy, Clone)]
86pub struct GoInterface {
87 pub t: *mut ::std::os::raw::c_void,
88 pub v: *mut ::std::os::raw::c_void,
89}
90#[test]
91fn bindgen_test_layout_GoInterface() {
92 assert_eq!(
93 ::std::mem::size_of::<GoInterface>(),
94 16usize,
95 concat!("Size of: ", stringify!(GoInterface))
96 );
97 assert_eq!(
98 ::std::mem::align_of::<GoInterface>(),
99 8usize,
100 concat!("Alignment of ", stringify!(GoInterface))
101 );
102 fn test_field_t() {
103 assert_eq!(
104 unsafe {
105 let uninit = ::std::mem::MaybeUninit::<GoInterface>::uninit();
106 let ptr = uninit.as_ptr();
107 ::std::ptr::addr_of!((*ptr).t) as usize - ptr as usize
108 },
109 0usize,
110 concat!(
111 "Offset of field: ",
112 stringify!(GoInterface),
113 "::",
114 stringify!(t)
115 )
116 );
117 }
118 test_field_t();
119 fn test_field_v() {
120 assert_eq!(
121 unsafe {
122 let uninit = ::std::mem::MaybeUninit::<GoInterface>::uninit();
123 let ptr = uninit.as_ptr();
124 ::std::ptr::addr_of!((*ptr).v) as usize - ptr as usize
125 },
126 8usize,
127 concat!(
128 "Offset of field: ",
129 stringify!(GoInterface),
130 "::",
131 stringify!(v)
132 )
133 );
134 }
135 test_field_v();
136}
137#[repr(C)]
138#[derive(Debug, Copy, Clone)]
139pub struct GoSlice {
140 pub data: *mut ::std::os::raw::c_void,
141 pub len: GoInt,
142 pub cap: GoInt,
143}
144#[test]
145fn bindgen_test_layout_GoSlice() {
146 assert_eq!(
147 ::std::mem::size_of::<GoSlice>(),
148 24usize,
149 concat!("Size of: ", stringify!(GoSlice))
150 );
151 assert_eq!(
152 ::std::mem::align_of::<GoSlice>(),
153 8usize,
154 concat!("Alignment of ", stringify!(GoSlice))
155 );
156 fn test_field_data() {
157 assert_eq!(
158 unsafe {
159 let uninit = ::std::mem::MaybeUninit::<GoSlice>::uninit();
160 let ptr = uninit.as_ptr();
161 ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize
162 },
163 0usize,
164 concat!(
165 "Offset of field: ",
166 stringify!(GoSlice),
167 "::",
168 stringify!(data)
169 )
170 );
171 }
172 test_field_data();
173 fn test_field_len() {
174 assert_eq!(
175 unsafe {
176 let uninit = ::std::mem::MaybeUninit::<GoSlice>::uninit();
177 let ptr = uninit.as_ptr();
178 ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize
179 },
180 8usize,
181 concat!(
182 "Offset of field: ",
183 stringify!(GoSlice),
184 "::",
185 stringify!(len)
186 )
187 );
188 }
189 test_field_len();
190 fn test_field_cap() {
191 assert_eq!(
192 unsafe {
193 let uninit = ::std::mem::MaybeUninit::<GoSlice>::uninit();
194 let ptr = uninit.as_ptr();
195 ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize
196 },
197 16usize,
198 concat!(
199 "Offset of field: ",
200 stringify!(GoSlice),
201 "::",
202 stringify!(cap)
203 )
204 );
205 }
206 test_field_cap();
207}
208extern "C" {
209 pub fn aesEncryptWithKey(
210 aesKey: *mut ::std::os::raw::c_char,
211 plaintext: *mut ::std::os::raw::c_char,
212 ) -> *mut ::std::os::raw::c_char;
213}