1#![allow(non_snake_case)]
2#![allow(non_camel_case_types)]
3#![allow(non_upper_case_globals)]
4
5pub const _STDINT_H: u32 = 1;
8pub const _FEATURES_H: u32 = 1;
9pub const _DEFAULT_SOURCE: u32 = 1;
10pub const __GLIBC_USE_ISOC2X: u32 = 0;
11pub const __USE_ISOC11: u32 = 1;
12pub const __USE_ISOC99: u32 = 1;
13pub const __USE_ISOC95: u32 = 1;
14pub const __USE_POSIX_IMPLICITLY: u32 = 1;
15pub const _POSIX_SOURCE: u32 = 1;
16pub const _POSIX_C_SOURCE: u32 = 200809;
17pub const __USE_POSIX: u32 = 1;
18pub const __USE_POSIX2: u32 = 1;
19pub const __USE_POSIX199309: u32 = 1;
20pub const __USE_POSIX199506: u32 = 1;
21pub const __USE_XOPEN2K: u32 = 1;
22pub const __USE_XOPEN2K8: u32 = 1;
23pub const _ATFILE_SOURCE: u32 = 1;
24pub const __USE_MISC: u32 = 1;
25pub const __USE_ATFILE: u32 = 1;
26pub const __USE_FORTIFY_LEVEL: u32 = 0;
27pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
28pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
29pub const _STDC_PREDEF_H: u32 = 1;
30pub const __STDC_IEC_559__: u32 = 1;
31pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
32pub const __STDC_ISO_10646__: u32 = 201706;
33pub const __GNU_LIBRARY__: u32 = 6;
34pub const __GLIBC__: u32 = 2;
35pub const __GLIBC_MINOR__: u32 = 32;
36pub const _SYS_CDEFS_H: u32 = 1;
37pub const __glibc_c99_flexarr_available: u32 = 1;
38pub const __WORDSIZE: u32 = 64;
39pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
40pub const __SYSCALL_WORDSIZE: u32 = 64;
41pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
42pub const __HAVE_GENERIC_SELECTION: u32 = 1;
43pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
44pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
45pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
46pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
47pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
48pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
49pub const _BITS_TYPES_H: u32 = 1;
50pub const __TIMESIZE: u32 = 64;
51pub const _BITS_TYPESIZES_H: u32 = 1;
52pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
53pub const __INO_T_MATCHES_INO64_T: u32 = 1;
54pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
55pub const __STATFS_MATCHES_STATFS64: u32 = 1;
56pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
57pub const __FD_SETSIZE: u32 = 1024;
58pub const _BITS_TIME64_H: u32 = 1;
59pub const _BITS_WCHAR_H: u32 = 1;
60pub const _BITS_STDINT_INTN_H: u32 = 1;
61pub const _BITS_STDINT_UINTN_H: u32 = 1;
62pub const INT8_MIN: i32 = -128;
63pub const INT16_MIN: i32 = -32768;
64pub const INT32_MIN: i32 = -2147483648;
65pub const INT8_MAX: u32 = 127;
66pub const INT16_MAX: u32 = 32767;
67pub const INT32_MAX: u32 = 2147483647;
68pub const UINT8_MAX: u32 = 255;
69pub const UINT16_MAX: u32 = 65535;
70pub const UINT32_MAX: u32 = 4294967295;
71pub const INT_LEAST8_MIN: i32 = -128;
72pub const INT_LEAST16_MIN: i32 = -32768;
73pub const INT_LEAST32_MIN: i32 = -2147483648;
74pub const INT_LEAST8_MAX: u32 = 127;
75pub const INT_LEAST16_MAX: u32 = 32767;
76pub const INT_LEAST32_MAX: u32 = 2147483647;
77pub const UINT_LEAST8_MAX: u32 = 255;
78pub const UINT_LEAST16_MAX: u32 = 65535;
79pub const UINT_LEAST32_MAX: u32 = 4294967295;
80pub const INT_FAST8_MIN: i32 = -128;
81pub const INT_FAST16_MIN: i64 = -9223372036854775808;
82pub const INT_FAST32_MIN: i64 = -9223372036854775808;
83pub const INT_FAST8_MAX: u32 = 127;
84pub const INT_FAST16_MAX: u64 = 9223372036854775807;
85pub const INT_FAST32_MAX: u64 = 9223372036854775807;
86pub const UINT_FAST8_MAX: u32 = 255;
87pub const UINT_FAST16_MAX: i32 = -1;
88pub const UINT_FAST32_MAX: i32 = -1;
89pub const INTPTR_MIN: i64 = -9223372036854775808;
90pub const INTPTR_MAX: u64 = 9223372036854775807;
91pub const UINTPTR_MAX: i32 = -1;
92pub const PTRDIFF_MIN: i64 = -9223372036854775808;
93pub const PTRDIFF_MAX: u64 = 9223372036854775807;
94pub const SIG_ATOMIC_MIN: i32 = -2147483648;
95pub const SIG_ATOMIC_MAX: u32 = 2147483647;
96pub const SIZE_MAX: i32 = -1;
97pub const WINT_MIN: u32 = 0;
98pub const WINT_MAX: u32 = 4294967295;
99pub const _STDIO_H: u32 = 1;
100pub const __GNUC_VA_LIST: u32 = 1;
101pub const _____fpos_t_defined: u32 = 1;
102pub const ____mbstate_t_defined: u32 = 1;
103pub const _____fpos64_t_defined: u32 = 1;
104pub const ____FILE_defined: u32 = 1;
105pub const __FILE_defined: u32 = 1;
106pub const __struct_FILE_defined: u32 = 1;
107pub const _IO_EOF_SEEN: u32 = 16;
108pub const _IO_ERR_SEEN: u32 = 32;
109pub const _IO_USER_LOCK: u32 = 32768;
110pub const _IOFBF: u32 = 0;
111pub const _IOLBF: u32 = 1;
112pub const _IONBF: u32 = 2;
113pub const BUFSIZ: u32 = 8192;
114pub const EOF: i32 = -1;
115pub const SEEK_SET: u32 = 0;
116pub const SEEK_CUR: u32 = 1;
117pub const SEEK_END: u32 = 2;
118pub const P_tmpdir: &'static [u8; 5usize] = b"/tmp\0";
119pub const _BITS_STDIO_LIM_H: u32 = 1;
120pub const L_tmpnam: u32 = 20;
121pub const TMP_MAX: u32 = 238328;
122pub const FILENAME_MAX: u32 = 4096;
123pub const L_ctermid: u32 = 9;
124pub const FOPEN_MAX: u32 = 16;
125pub const __HAVE_FLOAT128: u32 = 0;
126pub const __HAVE_DISTINCT_FLOAT128: u32 = 0;
127pub const __HAVE_FLOAT64X: u32 = 1;
128pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1;
129pub const __HAVE_FLOAT16: u32 = 0;
130pub const __HAVE_FLOAT32: u32 = 1;
131pub const __HAVE_FLOAT64: u32 = 1;
132pub const __HAVE_FLOAT32X: u32 = 1;
133pub const __HAVE_FLOAT128X: u32 = 0;
134pub const __HAVE_DISTINCT_FLOAT16: u32 = 0;
135pub const __HAVE_DISTINCT_FLOAT32: u32 = 0;
136pub const __HAVE_DISTINCT_FLOAT64: u32 = 0;
137pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0;
138pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0;
139pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0;
140pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0;
141pub const TRUE: u32 = 1;
142pub const FALSE: u32 = 0;
143pub type __u_char = ::std::os::raw::c_uchar;
144pub type __u_short = ::std::os::raw::c_ushort;
145pub type __u_int = ::std::os::raw::c_uint;
146pub type __u_long = ::std::os::raw::c_ulong;
147pub type __int8_t = ::std::os::raw::c_schar;
148pub type __uint8_t = ::std::os::raw::c_uchar;
149pub type __int16_t = ::std::os::raw::c_short;
150pub type __uint16_t = ::std::os::raw::c_ushort;
151pub type __int32_t = ::std::os::raw::c_int;
152pub type __uint32_t = ::std::os::raw::c_uint;
153pub type __int64_t = ::std::os::raw::c_long;
154pub type __uint64_t = ::std::os::raw::c_ulong;
155pub type __int_least8_t = __int8_t;
156pub type __uint_least8_t = __uint8_t;
157pub type __int_least16_t = __int16_t;
158pub type __uint_least16_t = __uint16_t;
159pub type __int_least32_t = __int32_t;
160pub type __uint_least32_t = __uint32_t;
161pub type __int_least64_t = __int64_t;
162pub type __uint_least64_t = __uint64_t;
163pub type __quad_t = ::std::os::raw::c_long;
164pub type __u_quad_t = ::std::os::raw::c_ulong;
165pub type __intmax_t = ::std::os::raw::c_long;
166pub type __uintmax_t = ::std::os::raw::c_ulong;
167pub type __dev_t = ::std::os::raw::c_ulong;
168pub type __uid_t = ::std::os::raw::c_uint;
169pub type __gid_t = ::std::os::raw::c_uint;
170pub type __ino_t = ::std::os::raw::c_ulong;
171pub type __ino64_t = ::std::os::raw::c_ulong;
172pub type __mode_t = ::std::os::raw::c_uint;
173pub type __nlink_t = ::std::os::raw::c_ulong;
174pub type __off_t = ::std::os::raw::c_long;
175pub type __off64_t = ::std::os::raw::c_long;
176pub type __pid_t = ::std::os::raw::c_int;
177#[repr(C)]
178#[derive(Debug, Copy, Clone)]
179pub struct __fsid_t {
180 pub __val: [::std::os::raw::c_int; 2usize],
181}
182#[test]
183fn bindgen_test_layout___fsid_t() {
184 assert_eq!(
185 ::std::mem::size_of::<__fsid_t>(),
186 8usize,
187 concat!("Size of: ", stringify!(__fsid_t))
188 );
189 assert_eq!(
190 ::std::mem::align_of::<__fsid_t>(),
191 4usize,
192 concat!("Alignment of ", stringify!(__fsid_t))
193 );
194 assert_eq!(
195 unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
196 0usize,
197 concat!(
198 "Offset of field: ",
199 stringify!(__fsid_t),
200 "::",
201 stringify!(__val)
202 )
203 );
204}
205pub type __clock_t = ::std::os::raw::c_long;
206pub type __rlim_t = ::std::os::raw::c_ulong;
207pub type __rlim64_t = ::std::os::raw::c_ulong;
208pub type __id_t = ::std::os::raw::c_uint;
209pub type __time_t = ::std::os::raw::c_long;
210pub type __useconds_t = ::std::os::raw::c_uint;
211pub type __suseconds_t = ::std::os::raw::c_long;
212pub type __suseconds64_t = ::std::os::raw::c_long;
213pub type __daddr_t = ::std::os::raw::c_int;
214pub type __key_t = ::std::os::raw::c_int;
215pub type __clockid_t = ::std::os::raw::c_int;
216pub type __timer_t = *mut ::std::os::raw::c_void;
217pub type __blksize_t = ::std::os::raw::c_long;
218pub type __blkcnt_t = ::std::os::raw::c_long;
219pub type __blkcnt64_t = ::std::os::raw::c_long;
220pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
221pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
222pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
223pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
224pub type __fsword_t = ::std::os::raw::c_long;
225pub type __ssize_t = ::std::os::raw::c_long;
226pub type __syscall_slong_t = ::std::os::raw::c_long;
227pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
228pub type __loff_t = __off64_t;
229pub type __caddr_t = *mut ::std::os::raw::c_char;
230pub type __intptr_t = ::std::os::raw::c_long;
231pub type __socklen_t = ::std::os::raw::c_uint;
232pub type __sig_atomic_t = ::std::os::raw::c_int;
233pub type int_least8_t = __int_least8_t;
234pub type int_least16_t = __int_least16_t;
235pub type int_least32_t = __int_least32_t;
236pub type int_least64_t = __int_least64_t;
237pub type uint_least8_t = __uint_least8_t;
238pub type uint_least16_t = __uint_least16_t;
239pub type uint_least32_t = __uint_least32_t;
240pub type uint_least64_t = __uint_least64_t;
241pub type int_fast8_t = ::std::os::raw::c_schar;
242pub type int_fast16_t = ::std::os::raw::c_long;
243pub type int_fast32_t = ::std::os::raw::c_long;
244pub type int_fast64_t = ::std::os::raw::c_long;
245pub type uint_fast8_t = ::std::os::raw::c_uchar;
246pub type uint_fast16_t = ::std::os::raw::c_ulong;
247pub type uint_fast32_t = ::std::os::raw::c_ulong;
248pub type uint_fast64_t = ::std::os::raw::c_ulong;
249pub type intmax_t = __intmax_t;
250pub type uintmax_t = __uintmax_t;
251pub type size_t = ::std::os::raw::c_ulong;
252pub type va_list = __builtin_va_list;
253pub type __gnuc_va_list = __builtin_va_list;
254#[repr(C)]
255#[derive(Copy, Clone)]
256pub struct __mbstate_t {
257 pub __count: ::std::os::raw::c_int,
258 pub __value: __mbstate_t__bindgen_ty_1,
259}
260#[repr(C)]
261#[derive(Copy, Clone)]
262pub union __mbstate_t__bindgen_ty_1 {
263 pub __wch: ::std::os::raw::c_uint,
264 pub __wchb: [::std::os::raw::c_char; 4usize],
265}
266#[test]
267fn bindgen_test_layout___mbstate_t__bindgen_ty_1() {
268 assert_eq!(
269 ::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(),
270 4usize,
271 concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1))
272 );
273 assert_eq!(
274 ::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(),
275 4usize,
276 concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1))
277 );
278 assert_eq!(
279 unsafe { &(*(::std::ptr::null::<__mbstate_t__bindgen_ty_1>())).__wch as *const _ as usize },
280 0usize,
281 concat!(
282 "Offset of field: ",
283 stringify!(__mbstate_t__bindgen_ty_1),
284 "::",
285 stringify!(__wch)
286 )
287 );
288 assert_eq!(
289 unsafe {
290 &(*(::std::ptr::null::<__mbstate_t__bindgen_ty_1>())).__wchb as *const _ as usize
291 },
292 0usize,
293 concat!(
294 "Offset of field: ",
295 stringify!(__mbstate_t__bindgen_ty_1),
296 "::",
297 stringify!(__wchb)
298 )
299 );
300}
301#[test]
302fn bindgen_test_layout___mbstate_t() {
303 assert_eq!(
304 ::std::mem::size_of::<__mbstate_t>(),
305 8usize,
306 concat!("Size of: ", stringify!(__mbstate_t))
307 );
308 assert_eq!(
309 ::std::mem::align_of::<__mbstate_t>(),
310 4usize,
311 concat!("Alignment of ", stringify!(__mbstate_t))
312 );
313 assert_eq!(
314 unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__count as *const _ as usize },
315 0usize,
316 concat!(
317 "Offset of field: ",
318 stringify!(__mbstate_t),
319 "::",
320 stringify!(__count)
321 )
322 );
323 assert_eq!(
324 unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__value as *const _ as usize },
325 4usize,
326 concat!(
327 "Offset of field: ",
328 stringify!(__mbstate_t),
329 "::",
330 stringify!(__value)
331 )
332 );
333}
334#[repr(C)]
335#[derive(Copy, Clone)]
336pub struct _G_fpos_t {
337 pub __pos: __off_t,
338 pub __state: __mbstate_t,
339}
340#[test]
341fn bindgen_test_layout__G_fpos_t() {
342 assert_eq!(
343 ::std::mem::size_of::<_G_fpos_t>(),
344 16usize,
345 concat!("Size of: ", stringify!(_G_fpos_t))
346 );
347 assert_eq!(
348 ::std::mem::align_of::<_G_fpos_t>(),
349 8usize,
350 concat!("Alignment of ", stringify!(_G_fpos_t))
351 );
352 assert_eq!(
353 unsafe { &(*(::std::ptr::null::<_G_fpos_t>())).__pos as *const _ as usize },
354 0usize,
355 concat!(
356 "Offset of field: ",
357 stringify!(_G_fpos_t),
358 "::",
359 stringify!(__pos)
360 )
361 );
362 assert_eq!(
363 unsafe { &(*(::std::ptr::null::<_G_fpos_t>())).__state as *const _ as usize },
364 8usize,
365 concat!(
366 "Offset of field: ",
367 stringify!(_G_fpos_t),
368 "::",
369 stringify!(__state)
370 )
371 );
372}
373pub type __fpos_t = _G_fpos_t;
374#[repr(C)]
375#[derive(Copy, Clone)]
376pub struct _G_fpos64_t {
377 pub __pos: __off64_t,
378 pub __state: __mbstate_t,
379}
380#[test]
381fn bindgen_test_layout__G_fpos64_t() {
382 assert_eq!(
383 ::std::mem::size_of::<_G_fpos64_t>(),
384 16usize,
385 concat!("Size of: ", stringify!(_G_fpos64_t))
386 );
387 assert_eq!(
388 ::std::mem::align_of::<_G_fpos64_t>(),
389 8usize,
390 concat!("Alignment of ", stringify!(_G_fpos64_t))
391 );
392 assert_eq!(
393 unsafe { &(*(::std::ptr::null::<_G_fpos64_t>())).__pos as *const _ as usize },
394 0usize,
395 concat!(
396 "Offset of field: ",
397 stringify!(_G_fpos64_t),
398 "::",
399 stringify!(__pos)
400 )
401 );
402 assert_eq!(
403 unsafe { &(*(::std::ptr::null::<_G_fpos64_t>())).__state as *const _ as usize },
404 8usize,
405 concat!(
406 "Offset of field: ",
407 stringify!(_G_fpos64_t),
408 "::",
409 stringify!(__state)
410 )
411 );
412}
413pub type __fpos64_t = _G_fpos64_t;
414pub type __FILE = _IO_FILE;
415pub type FILE = _IO_FILE;
416#[repr(C)]
417#[derive(Debug, Copy, Clone)]
418pub struct _IO_marker {
419 _unused: [u8; 0],
420}
421#[repr(C)]
422#[derive(Debug, Copy, Clone)]
423pub struct _IO_codecvt {
424 _unused: [u8; 0],
425}
426#[repr(C)]
427#[derive(Debug, Copy, Clone)]
428pub struct _IO_wide_data {
429 _unused: [u8; 0],
430}
431pub type _IO_lock_t = ::std::os::raw::c_void;
432#[repr(C)]
433#[derive(Debug, Copy, Clone)]
434pub struct _IO_FILE {
435 pub _flags: ::std::os::raw::c_int,
436 pub _IO_read_ptr: *mut ::std::os::raw::c_char,
437 pub _IO_read_end: *mut ::std::os::raw::c_char,
438 pub _IO_read_base: *mut ::std::os::raw::c_char,
439 pub _IO_write_base: *mut ::std::os::raw::c_char,
440 pub _IO_write_ptr: *mut ::std::os::raw::c_char,
441 pub _IO_write_end: *mut ::std::os::raw::c_char,
442 pub _IO_buf_base: *mut ::std::os::raw::c_char,
443 pub _IO_buf_end: *mut ::std::os::raw::c_char,
444 pub _IO_save_base: *mut ::std::os::raw::c_char,
445 pub _IO_backup_base: *mut ::std::os::raw::c_char,
446 pub _IO_save_end: *mut ::std::os::raw::c_char,
447 pub _markers: *mut _IO_marker,
448 pub _chain: *mut _IO_FILE,
449 pub _fileno: ::std::os::raw::c_int,
450 pub _flags2: ::std::os::raw::c_int,
451 pub _old_offset: __off_t,
452 pub _cur_column: ::std::os::raw::c_ushort,
453 pub _vtable_offset: ::std::os::raw::c_schar,
454 pub _shortbuf: [::std::os::raw::c_char; 1usize],
455 pub _lock: *mut _IO_lock_t,
456 pub _offset: __off64_t,
457 pub _codecvt: *mut _IO_codecvt,
458 pub _wide_data: *mut _IO_wide_data,
459 pub _freeres_list: *mut _IO_FILE,
460 pub _freeres_buf: *mut ::std::os::raw::c_void,
461 pub __pad5: size_t,
462 pub _mode: ::std::os::raw::c_int,
463 pub _unused2: [::std::os::raw::c_char; 20usize],
464}
465#[test]
466fn bindgen_test_layout__IO_FILE() {
467 assert_eq!(
468 ::std::mem::size_of::<_IO_FILE>(),
469 216usize,
470 concat!("Size of: ", stringify!(_IO_FILE))
471 );
472 assert_eq!(
473 ::std::mem::align_of::<_IO_FILE>(),
474 8usize,
475 concat!("Alignment of ", stringify!(_IO_FILE))
476 );
477 assert_eq!(
478 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags as *const _ as usize },
479 0usize,
480 concat!(
481 "Offset of field: ",
482 stringify!(_IO_FILE),
483 "::",
484 stringify!(_flags)
485 )
486 );
487 assert_eq!(
488 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_ptr as *const _ as usize },
489 8usize,
490 concat!(
491 "Offset of field: ",
492 stringify!(_IO_FILE),
493 "::",
494 stringify!(_IO_read_ptr)
495 )
496 );
497 assert_eq!(
498 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_end as *const _ as usize },
499 16usize,
500 concat!(
501 "Offset of field: ",
502 stringify!(_IO_FILE),
503 "::",
504 stringify!(_IO_read_end)
505 )
506 );
507 assert_eq!(
508 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_base as *const _ as usize },
509 24usize,
510 concat!(
511 "Offset of field: ",
512 stringify!(_IO_FILE),
513 "::",
514 stringify!(_IO_read_base)
515 )
516 );
517 assert_eq!(
518 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_base as *const _ as usize },
519 32usize,
520 concat!(
521 "Offset of field: ",
522 stringify!(_IO_FILE),
523 "::",
524 stringify!(_IO_write_base)
525 )
526 );
527 assert_eq!(
528 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_ptr as *const _ as usize },
529 40usize,
530 concat!(
531 "Offset of field: ",
532 stringify!(_IO_FILE),
533 "::",
534 stringify!(_IO_write_ptr)
535 )
536 );
537 assert_eq!(
538 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_end as *const _ as usize },
539 48usize,
540 concat!(
541 "Offset of field: ",
542 stringify!(_IO_FILE),
543 "::",
544 stringify!(_IO_write_end)
545 )
546 );
547 assert_eq!(
548 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_base as *const _ as usize },
549 56usize,
550 concat!(
551 "Offset of field: ",
552 stringify!(_IO_FILE),
553 "::",
554 stringify!(_IO_buf_base)
555 )
556 );
557 assert_eq!(
558 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_end as *const _ as usize },
559 64usize,
560 concat!(
561 "Offset of field: ",
562 stringify!(_IO_FILE),
563 "::",
564 stringify!(_IO_buf_end)
565 )
566 );
567 assert_eq!(
568 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_base as *const _ as usize },
569 72usize,
570 concat!(
571 "Offset of field: ",
572 stringify!(_IO_FILE),
573 "::",
574 stringify!(_IO_save_base)
575 )
576 );
577 assert_eq!(
578 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_backup_base as *const _ as usize },
579 80usize,
580 concat!(
581 "Offset of field: ",
582 stringify!(_IO_FILE),
583 "::",
584 stringify!(_IO_backup_base)
585 )
586 );
587 assert_eq!(
588 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_end as *const _ as usize },
589 88usize,
590 concat!(
591 "Offset of field: ",
592 stringify!(_IO_FILE),
593 "::",
594 stringify!(_IO_save_end)
595 )
596 );
597 assert_eq!(
598 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._markers as *const _ as usize },
599 96usize,
600 concat!(
601 "Offset of field: ",
602 stringify!(_IO_FILE),
603 "::",
604 stringify!(_markers)
605 )
606 );
607 assert_eq!(
608 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._chain as *const _ as usize },
609 104usize,
610 concat!(
611 "Offset of field: ",
612 stringify!(_IO_FILE),
613 "::",
614 stringify!(_chain)
615 )
616 );
617 assert_eq!(
618 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._fileno as *const _ as usize },
619 112usize,
620 concat!(
621 "Offset of field: ",
622 stringify!(_IO_FILE),
623 "::",
624 stringify!(_fileno)
625 )
626 );
627 assert_eq!(
628 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags2 as *const _ as usize },
629 116usize,
630 concat!(
631 "Offset of field: ",
632 stringify!(_IO_FILE),
633 "::",
634 stringify!(_flags2)
635 )
636 );
637 assert_eq!(
638 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._old_offset as *const _ as usize },
639 120usize,
640 concat!(
641 "Offset of field: ",
642 stringify!(_IO_FILE),
643 "::",
644 stringify!(_old_offset)
645 )
646 );
647 assert_eq!(
648 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._cur_column as *const _ as usize },
649 128usize,
650 concat!(
651 "Offset of field: ",
652 stringify!(_IO_FILE),
653 "::",
654 stringify!(_cur_column)
655 )
656 );
657 assert_eq!(
658 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._vtable_offset as *const _ as usize },
659 130usize,
660 concat!(
661 "Offset of field: ",
662 stringify!(_IO_FILE),
663 "::",
664 stringify!(_vtable_offset)
665 )
666 );
667 assert_eq!(
668 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._shortbuf as *const _ as usize },
669 131usize,
670 concat!(
671 "Offset of field: ",
672 stringify!(_IO_FILE),
673 "::",
674 stringify!(_shortbuf)
675 )
676 );
677 assert_eq!(
678 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._lock as *const _ as usize },
679 136usize,
680 concat!(
681 "Offset of field: ",
682 stringify!(_IO_FILE),
683 "::",
684 stringify!(_lock)
685 )
686 );
687 assert_eq!(
688 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._offset as *const _ as usize },
689 144usize,
690 concat!(
691 "Offset of field: ",
692 stringify!(_IO_FILE),
693 "::",
694 stringify!(_offset)
695 )
696 );
697 assert_eq!(
698 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._codecvt as *const _ as usize },
699 152usize,
700 concat!(
701 "Offset of field: ",
702 stringify!(_IO_FILE),
703 "::",
704 stringify!(_codecvt)
705 )
706 );
707 assert_eq!(
708 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._wide_data as *const _ as usize },
709 160usize,
710 concat!(
711 "Offset of field: ",
712 stringify!(_IO_FILE),
713 "::",
714 stringify!(_wide_data)
715 )
716 );
717 assert_eq!(
718 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_list as *const _ as usize },
719 168usize,
720 concat!(
721 "Offset of field: ",
722 stringify!(_IO_FILE),
723 "::",
724 stringify!(_freeres_list)
725 )
726 );
727 assert_eq!(
728 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_buf as *const _ as usize },
729 176usize,
730 concat!(
731 "Offset of field: ",
732 stringify!(_IO_FILE),
733 "::",
734 stringify!(_freeres_buf)
735 )
736 );
737 assert_eq!(
738 unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad5 as *const _ as usize },
739 184usize,
740 concat!(
741 "Offset of field: ",
742 stringify!(_IO_FILE),
743 "::",
744 stringify!(__pad5)
745 )
746 );
747 assert_eq!(
748 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._mode as *const _ as usize },
749 192usize,
750 concat!(
751 "Offset of field: ",
752 stringify!(_IO_FILE),
753 "::",
754 stringify!(_mode)
755 )
756 );
757 assert_eq!(
758 unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._unused2 as *const _ as usize },
759 196usize,
760 concat!(
761 "Offset of field: ",
762 stringify!(_IO_FILE),
763 "::",
764 stringify!(_unused2)
765 )
766 );
767}
768pub type off_t = __off_t;
769pub type ssize_t = __ssize_t;
770pub type fpos_t = __fpos_t;
771extern "C" {
772 pub static mut stdin: *mut FILE;
773}
774extern "C" {
775 pub static mut stdout: *mut FILE;
776}
777extern "C" {
778 pub static mut stderr: *mut FILE;
779}
780pub type _Float32 = f32;
781pub type _Float64 = f64;
782pub type _Float32x = f64;
783pub type _Float64x = u128;
784pub type PD_Bool = i8;
785pub type PD_PrecisionType = i32;
786pub const PD_PRECISION_FLOAT32: ::std::os::raw::c_uint = 0;
787pub const PD_PRECISION_INT8: ::std::os::raw::c_uint = 1;
788pub const PD_PRECISION_HALF: ::std::os::raw::c_uint = 2;
789pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
790pub type PD_PlaceType = i32;
791pub const PD_PLACE_UNK: ::std::os::raw::c_int = -1;
792pub const PD_PLACE_CPU: ::std::os::raw::c_int = 0;
793pub const PD_PLACE_GPU: ::std::os::raw::c_int = 1;
794pub const PD_PLACE_XPU: ::std::os::raw::c_int = 2;
795pub type _bindgen_ty_2 = ::std::os::raw::c_int;
796pub type PD_DataType = i32;
797pub const PD_DATA_UNK: ::std::os::raw::c_int = -1;
798pub const PD_DATA_FLOAT32: ::std::os::raw::c_int = 0;
799pub const PD_DATA_INT32: ::std::os::raw::c_int = 1;
800pub const PD_DATA_INT64: ::std::os::raw::c_int = 2;
801pub const PD_DATA_UINT8: ::std::os::raw::c_int = 3;
802pub type _bindgen_ty_3 = ::std::os::raw::c_int;
803#[repr(C)]
804#[derive(Debug, Copy, Clone)]
805pub struct PD_Config {
806 _unused: [u8; 0],
807}
808#[repr(C)]
809#[derive(Debug, Copy, Clone)]
810pub struct PD_Predictor {
811 _unused: [u8; 0],
812}
813#[repr(C)]
814#[derive(Debug, Copy, Clone)]
815pub struct PD_Tensor {
816 _unused: [u8; 0],
817}
818#[repr(C)]
819#[derive(Debug, Copy, Clone)]
820pub struct PD_OneDimArrayInt32 {
821 pub size: size_t,
822 pub data: *mut i32,
823}
824#[test]
825fn bindgen_test_layout_PD_OneDimArrayInt32() {
826 assert_eq!(
827 ::std::mem::size_of::<PD_OneDimArrayInt32>(),
828 16usize,
829 concat!("Size of: ", stringify!(PD_OneDimArrayInt32))
830 );
831 assert_eq!(
832 ::std::mem::align_of::<PD_OneDimArrayInt32>(),
833 8usize,
834 concat!("Alignment of ", stringify!(PD_OneDimArrayInt32))
835 );
836 assert_eq!(
837 unsafe { &(*(::std::ptr::null::<PD_OneDimArrayInt32>())).size as *const _ as usize },
838 0usize,
839 concat!(
840 "Offset of field: ",
841 stringify!(PD_OneDimArrayInt32),
842 "::",
843 stringify!(size)
844 )
845 );
846 assert_eq!(
847 unsafe { &(*(::std::ptr::null::<PD_OneDimArrayInt32>())).data as *const _ as usize },
848 8usize,
849 concat!(
850 "Offset of field: ",
851 stringify!(PD_OneDimArrayInt32),
852 "::",
853 stringify!(data)
854 )
855 );
856}
857#[repr(C)]
858#[derive(Debug, Copy, Clone)]
859pub struct PD_OneDimArraySize {
860 pub size: size_t,
861 pub data: *mut size_t,
862}
863#[test]
864fn bindgen_test_layout_PD_OneDimArraySize() {
865 assert_eq!(
866 ::std::mem::size_of::<PD_OneDimArraySize>(),
867 16usize,
868 concat!("Size of: ", stringify!(PD_OneDimArraySize))
869 );
870 assert_eq!(
871 ::std::mem::align_of::<PD_OneDimArraySize>(),
872 8usize,
873 concat!("Alignment of ", stringify!(PD_OneDimArraySize))
874 );
875 assert_eq!(
876 unsafe { &(*(::std::ptr::null::<PD_OneDimArraySize>())).size as *const _ as usize },
877 0usize,
878 concat!(
879 "Offset of field: ",
880 stringify!(PD_OneDimArraySize),
881 "::",
882 stringify!(size)
883 )
884 );
885 assert_eq!(
886 unsafe { &(*(::std::ptr::null::<PD_OneDimArraySize>())).data as *const _ as usize },
887 8usize,
888 concat!(
889 "Offset of field: ",
890 stringify!(PD_OneDimArraySize),
891 "::",
892 stringify!(data)
893 )
894 );
895}
896#[repr(C)]
897#[derive(Debug, Copy, Clone)]
898pub struct PD_OneDimArrayCstr {
899 pub size: size_t,
900 pub data: *mut *mut ::std::os::raw::c_char,
901}
902#[test]
903fn bindgen_test_layout_PD_OneDimArrayCstr() {
904 assert_eq!(
905 ::std::mem::size_of::<PD_OneDimArrayCstr>(),
906 16usize,
907 concat!("Size of: ", stringify!(PD_OneDimArrayCstr))
908 );
909 assert_eq!(
910 ::std::mem::align_of::<PD_OneDimArrayCstr>(),
911 8usize,
912 concat!("Alignment of ", stringify!(PD_OneDimArrayCstr))
913 );
914 assert_eq!(
915 unsafe { &(*(::std::ptr::null::<PD_OneDimArrayCstr>())).size as *const _ as usize },
916 0usize,
917 concat!(
918 "Offset of field: ",
919 stringify!(PD_OneDimArrayCstr),
920 "::",
921 stringify!(size)
922 )
923 );
924 assert_eq!(
925 unsafe { &(*(::std::ptr::null::<PD_OneDimArrayCstr>())).data as *const _ as usize },
926 8usize,
927 concat!(
928 "Offset of field: ",
929 stringify!(PD_OneDimArrayCstr),
930 "::",
931 stringify!(data)
932 )
933 );
934}
935#[repr(C)]
936#[derive(Debug, Copy, Clone)]
937pub struct PD_TwoDimArraySize {
938 pub size: size_t,
939 pub data: *mut *mut PD_OneDimArraySize,
940}
941#[test]
942fn bindgen_test_layout_PD_TwoDimArraySize() {
943 assert_eq!(
944 ::std::mem::size_of::<PD_TwoDimArraySize>(),
945 16usize,
946 concat!("Size of: ", stringify!(PD_TwoDimArraySize))
947 );
948 assert_eq!(
949 ::std::mem::align_of::<PD_TwoDimArraySize>(),
950 8usize,
951 concat!("Alignment of ", stringify!(PD_TwoDimArraySize))
952 );
953 assert_eq!(
954 unsafe { &(*(::std::ptr::null::<PD_TwoDimArraySize>())).size as *const _ as usize },
955 0usize,
956 concat!(
957 "Offset of field: ",
958 stringify!(PD_TwoDimArraySize),
959 "::",
960 stringify!(size)
961 )
962 );
963 assert_eq!(
964 unsafe { &(*(::std::ptr::null::<PD_TwoDimArraySize>())).data as *const _ as usize },
965 8usize,
966 concat!(
967 "Offset of field: ",
968 stringify!(PD_TwoDimArraySize),
969 "::",
970 stringify!(data)
971 )
972 );
973}
974pub type __builtin_va_list = [__va_list_tag; 1usize];
975#[repr(C)]
976#[derive(Debug, Copy, Clone)]
977pub struct __va_list_tag {
978 pub gp_offset: ::std::os::raw::c_uint,
979 pub fp_offset: ::std::os::raw::c_uint,
980 pub overflow_arg_area: *mut ::std::os::raw::c_void,
981 pub reg_save_area: *mut ::std::os::raw::c_void,
982}
983#[test]
984fn bindgen_test_layout___va_list_tag() {
985 assert_eq!(
986 ::std::mem::size_of::<__va_list_tag>(),
987 24usize,
988 concat!("Size of: ", stringify!(__va_list_tag))
989 );
990 assert_eq!(
991 ::std::mem::align_of::<__va_list_tag>(),
992 8usize,
993 concat!("Alignment of ", stringify!(__va_list_tag))
994 );
995 assert_eq!(
996 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
997 0usize,
998 concat!(
999 "Offset of field: ",
1000 stringify!(__va_list_tag),
1001 "::",
1002 stringify!(gp_offset)
1003 )
1004 );
1005 assert_eq!(
1006 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
1007 4usize,
1008 concat!(
1009 "Offset of field: ",
1010 stringify!(__va_list_tag),
1011 "::",
1012 stringify!(fp_offset)
1013 )
1014 );
1015 assert_eq!(
1016 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
1017 8usize,
1018 concat!(
1019 "Offset of field: ",
1020 stringify!(__va_list_tag),
1021 "::",
1022 stringify!(overflow_arg_area)
1023 )
1024 );
1025 assert_eq!(
1026 unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
1027 16usize,
1028 concat!(
1029 "Offset of field: ",
1030 stringify!(__va_list_tag),
1031 "::",
1032 stringify!(reg_save_area)
1033 )
1034 );
1035}
1036extern crate libloading;
1037pub struct paddle_inference_c {
1038 __library: ::libloading::Library,
1039 pub remove: Result<
1040 unsafe extern "C" fn(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int,
1041 ::libloading::Error,
1042 >,
1043 pub rename: Result<
1044 unsafe extern "C" fn(
1045 __old: *const ::std::os::raw::c_char,
1046 __new: *const ::std::os::raw::c_char,
1047 ) -> ::std::os::raw::c_int,
1048 ::libloading::Error,
1049 >,
1050 pub renameat: Result<
1051 unsafe extern "C" fn(
1052 __oldfd: ::std::os::raw::c_int,
1053 __old: *const ::std::os::raw::c_char,
1054 __newfd: ::std::os::raw::c_int,
1055 __new: *const ::std::os::raw::c_char,
1056 ) -> ::std::os::raw::c_int,
1057 ::libloading::Error,
1058 >,
1059 pub tmpfile: Result<unsafe extern "C" fn() -> *mut FILE, ::libloading::Error>,
1060 pub tmpnam: Result<
1061 unsafe extern "C" fn(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char,
1062 ::libloading::Error,
1063 >,
1064 pub tmpnam_r: Result<
1065 unsafe extern "C" fn(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char,
1066 ::libloading::Error,
1067 >,
1068 pub tempnam: Result<
1069 unsafe extern "C" fn(
1070 __dir: *const ::std::os::raw::c_char,
1071 __pfx: *const ::std::os::raw::c_char,
1072 ) -> *mut ::std::os::raw::c_char,
1073 ::libloading::Error,
1074 >,
1075 pub fclose: Result<
1076 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1077 ::libloading::Error,
1078 >,
1079 pub fflush: Result<
1080 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1081 ::libloading::Error,
1082 >,
1083 pub fflush_unlocked: Result<
1084 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1085 ::libloading::Error,
1086 >,
1087 pub fopen: Result<
1088 unsafe extern "C" fn(
1089 __filename: *const ::std::os::raw::c_char,
1090 __modes: *const ::std::os::raw::c_char,
1091 ) -> *mut FILE,
1092 ::libloading::Error,
1093 >,
1094 pub freopen: Result<
1095 unsafe extern "C" fn(
1096 __filename: *const ::std::os::raw::c_char,
1097 __modes: *const ::std::os::raw::c_char,
1098 __stream: *mut FILE,
1099 ) -> *mut FILE,
1100 ::libloading::Error,
1101 >,
1102 pub fdopen: Result<
1103 unsafe extern "C" fn(
1104 __fd: ::std::os::raw::c_int,
1105 __modes: *const ::std::os::raw::c_char,
1106 ) -> *mut FILE,
1107 ::libloading::Error,
1108 >,
1109 pub fmemopen: Result<
1110 unsafe extern "C" fn(
1111 __s: *mut ::std::os::raw::c_void,
1112 __len: size_t,
1113 __modes: *const ::std::os::raw::c_char,
1114 ) -> *mut FILE,
1115 ::libloading::Error,
1116 >,
1117 pub open_memstream: Result<
1118 unsafe extern "C" fn(
1119 __bufloc: *mut *mut ::std::os::raw::c_char,
1120 __sizeloc: *mut size_t,
1121 ) -> *mut FILE,
1122 ::libloading::Error,
1123 >,
1124 pub setbuf: Result<
1125 unsafe extern "C" fn(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char),
1126 ::libloading::Error,
1127 >,
1128 pub setvbuf: Result<
1129 unsafe extern "C" fn(
1130 __stream: *mut FILE,
1131 __buf: *mut ::std::os::raw::c_char,
1132 __modes: ::std::os::raw::c_int,
1133 __n: size_t,
1134 ) -> ::std::os::raw::c_int,
1135 ::libloading::Error,
1136 >,
1137 pub setbuffer: Result<
1138 unsafe extern "C" fn(
1139 __stream: *mut FILE,
1140 __buf: *mut ::std::os::raw::c_char,
1141 __size: size_t,
1142 ),
1143 ::libloading::Error,
1144 >,
1145 pub setlinebuf: Result<unsafe extern "C" fn(__stream: *mut FILE), ::libloading::Error>,
1146 pub fprintf: Result<
1147 unsafe extern "C" fn(
1148 __stream: *mut FILE,
1149 __format: *const ::std::os::raw::c_char,
1150 ...
1151 ) -> ::std::os::raw::c_int,
1152 ::libloading::Error,
1153 >,
1154 pub printf: Result<
1155 unsafe extern "C" fn(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int,
1156 ::libloading::Error,
1157 >,
1158 pub sprintf: Result<
1159 unsafe extern "C" fn(
1160 __s: *mut ::std::os::raw::c_char,
1161 __format: *const ::std::os::raw::c_char,
1162 ...
1163 ) -> ::std::os::raw::c_int,
1164 ::libloading::Error,
1165 >,
1166 pub vfprintf: Result<
1167 unsafe extern "C" fn(
1168 __s: *mut FILE,
1169 __format: *const ::std::os::raw::c_char,
1170 __arg: *mut __va_list_tag,
1171 ) -> ::std::os::raw::c_int,
1172 ::libloading::Error,
1173 >,
1174 pub vprintf: Result<
1175 unsafe extern "C" fn(
1176 __format: *const ::std::os::raw::c_char,
1177 __arg: *mut __va_list_tag,
1178 ) -> ::std::os::raw::c_int,
1179 ::libloading::Error,
1180 >,
1181 pub vsprintf: Result<
1182 unsafe extern "C" fn(
1183 __s: *mut ::std::os::raw::c_char,
1184 __format: *const ::std::os::raw::c_char,
1185 __arg: *mut __va_list_tag,
1186 ) -> ::std::os::raw::c_int,
1187 ::libloading::Error,
1188 >,
1189 pub snprintf: Result<
1190 unsafe extern "C" fn(
1191 __s: *mut ::std::os::raw::c_char,
1192 __maxlen: ::std::os::raw::c_ulong,
1193 __format: *const ::std::os::raw::c_char,
1194 ...
1195 ) -> ::std::os::raw::c_int,
1196 ::libloading::Error,
1197 >,
1198 pub vsnprintf: Result<
1199 unsafe extern "C" fn(
1200 __s: *mut ::std::os::raw::c_char,
1201 __maxlen: ::std::os::raw::c_ulong,
1202 __format: *const ::std::os::raw::c_char,
1203 __arg: *mut __va_list_tag,
1204 ) -> ::std::os::raw::c_int,
1205 ::libloading::Error,
1206 >,
1207 pub vdprintf: Result<
1208 unsafe extern "C" fn(
1209 __fd: ::std::os::raw::c_int,
1210 __fmt: *const ::std::os::raw::c_char,
1211 __arg: *mut __va_list_tag,
1212 ) -> ::std::os::raw::c_int,
1213 ::libloading::Error,
1214 >,
1215 pub dprintf: Result<
1216 unsafe extern "C" fn(
1217 __fd: ::std::os::raw::c_int,
1218 __fmt: *const ::std::os::raw::c_char,
1219 ...
1220 ) -> ::std::os::raw::c_int,
1221 ::libloading::Error,
1222 >,
1223 pub fscanf: Result<
1224 unsafe extern "C" fn(
1225 __stream: *mut FILE,
1226 __format: *const ::std::os::raw::c_char,
1227 ...
1228 ) -> ::std::os::raw::c_int,
1229 ::libloading::Error,
1230 >,
1231 pub scanf: Result<
1232 unsafe extern "C" fn(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int,
1233 ::libloading::Error,
1234 >,
1235 pub sscanf: Result<
1236 unsafe extern "C" fn(
1237 __s: *const ::std::os::raw::c_char,
1238 __format: *const ::std::os::raw::c_char,
1239 ...
1240 ) -> ::std::os::raw::c_int,
1241 ::libloading::Error,
1242 >,
1243 pub fscanf1: Result<
1244 unsafe extern "C" fn(
1245 __stream: *mut FILE,
1246 __format: *const ::std::os::raw::c_char,
1247 ...
1248 ) -> ::std::os::raw::c_int,
1249 ::libloading::Error,
1250 >,
1251 pub scanf1: Result<
1252 unsafe extern "C" fn(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int,
1253 ::libloading::Error,
1254 >,
1255 pub sscanf1: Result<
1256 unsafe extern "C" fn(
1257 __s: *const ::std::os::raw::c_char,
1258 __format: *const ::std::os::raw::c_char,
1259 ...
1260 ) -> ::std::os::raw::c_int,
1261 ::libloading::Error,
1262 >,
1263 pub vfscanf: Result<
1264 unsafe extern "C" fn(
1265 __s: *mut FILE,
1266 __format: *const ::std::os::raw::c_char,
1267 __arg: *mut __va_list_tag,
1268 ) -> ::std::os::raw::c_int,
1269 ::libloading::Error,
1270 >,
1271 pub vscanf: Result<
1272 unsafe extern "C" fn(
1273 __format: *const ::std::os::raw::c_char,
1274 __arg: *mut __va_list_tag,
1275 ) -> ::std::os::raw::c_int,
1276 ::libloading::Error,
1277 >,
1278 pub vsscanf: Result<
1279 unsafe extern "C" fn(
1280 __s: *const ::std::os::raw::c_char,
1281 __format: *const ::std::os::raw::c_char,
1282 __arg: *mut __va_list_tag,
1283 ) -> ::std::os::raw::c_int,
1284 ::libloading::Error,
1285 >,
1286 pub vfscanf1: Result<
1287 unsafe extern "C" fn(
1288 __s: *mut FILE,
1289 __format: *const ::std::os::raw::c_char,
1290 __arg: *mut __va_list_tag,
1291 ) -> ::std::os::raw::c_int,
1292 ::libloading::Error,
1293 >,
1294 pub vscanf1: Result<
1295 unsafe extern "C" fn(
1296 __format: *const ::std::os::raw::c_char,
1297 __arg: *mut __va_list_tag,
1298 ) -> ::std::os::raw::c_int,
1299 ::libloading::Error,
1300 >,
1301 pub vsscanf1: Result<
1302 unsafe extern "C" fn(
1303 __s: *const ::std::os::raw::c_char,
1304 __format: *const ::std::os::raw::c_char,
1305 __arg: *mut __va_list_tag,
1306 ) -> ::std::os::raw::c_int,
1307 ::libloading::Error,
1308 >,
1309 pub fgetc: Result<
1310 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1311 ::libloading::Error,
1312 >,
1313 pub getc: Result<
1314 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1315 ::libloading::Error,
1316 >,
1317 pub getchar: Result<unsafe extern "C" fn() -> ::std::os::raw::c_int, ::libloading::Error>,
1318 pub getc_unlocked: Result<
1319 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1320 ::libloading::Error,
1321 >,
1322 pub getchar_unlocked:
1323 Result<unsafe extern "C" fn() -> ::std::os::raw::c_int, ::libloading::Error>,
1324 pub fgetc_unlocked: Result<
1325 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1326 ::libloading::Error,
1327 >,
1328 pub fputc: Result<
1329 unsafe extern "C" fn(
1330 __c: ::std::os::raw::c_int,
1331 __stream: *mut FILE,
1332 ) -> ::std::os::raw::c_int,
1333 ::libloading::Error,
1334 >,
1335 pub putc: Result<
1336 unsafe extern "C" fn(
1337 __c: ::std::os::raw::c_int,
1338 __stream: *mut FILE,
1339 ) -> ::std::os::raw::c_int,
1340 ::libloading::Error,
1341 >,
1342 pub putchar: Result<
1343 unsafe extern "C" fn(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
1344 ::libloading::Error,
1345 >,
1346 pub fputc_unlocked: Result<
1347 unsafe extern "C" fn(
1348 __c: ::std::os::raw::c_int,
1349 __stream: *mut FILE,
1350 ) -> ::std::os::raw::c_int,
1351 ::libloading::Error,
1352 >,
1353 pub putc_unlocked: Result<
1354 unsafe extern "C" fn(
1355 __c: ::std::os::raw::c_int,
1356 __stream: *mut FILE,
1357 ) -> ::std::os::raw::c_int,
1358 ::libloading::Error,
1359 >,
1360 pub putchar_unlocked: Result<
1361 unsafe extern "C" fn(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
1362 ::libloading::Error,
1363 >,
1364 pub getw: Result<
1365 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1366 ::libloading::Error,
1367 >,
1368 pub putw: Result<
1369 unsafe extern "C" fn(
1370 __w: ::std::os::raw::c_int,
1371 __stream: *mut FILE,
1372 ) -> ::std::os::raw::c_int,
1373 ::libloading::Error,
1374 >,
1375 pub fgets: Result<
1376 unsafe extern "C" fn(
1377 __s: *mut ::std::os::raw::c_char,
1378 __n: ::std::os::raw::c_int,
1379 __stream: *mut FILE,
1380 ) -> *mut ::std::os::raw::c_char,
1381 ::libloading::Error,
1382 >,
1383 pub __getdelim: Result<
1384 unsafe extern "C" fn(
1385 __lineptr: *mut *mut ::std::os::raw::c_char,
1386 __n: *mut size_t,
1387 __delimiter: ::std::os::raw::c_int,
1388 __stream: *mut FILE,
1389 ) -> __ssize_t,
1390 ::libloading::Error,
1391 >,
1392 pub getdelim: Result<
1393 unsafe extern "C" fn(
1394 __lineptr: *mut *mut ::std::os::raw::c_char,
1395 __n: *mut size_t,
1396 __delimiter: ::std::os::raw::c_int,
1397 __stream: *mut FILE,
1398 ) -> __ssize_t,
1399 ::libloading::Error,
1400 >,
1401 pub getline: Result<
1402 unsafe extern "C" fn(
1403 __lineptr: *mut *mut ::std::os::raw::c_char,
1404 __n: *mut size_t,
1405 __stream: *mut FILE,
1406 ) -> __ssize_t,
1407 ::libloading::Error,
1408 >,
1409 pub fputs: Result<
1410 unsafe extern "C" fn(
1411 __s: *const ::std::os::raw::c_char,
1412 __stream: *mut FILE,
1413 ) -> ::std::os::raw::c_int,
1414 ::libloading::Error,
1415 >,
1416 pub puts: Result<
1417 unsafe extern "C" fn(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int,
1418 ::libloading::Error,
1419 >,
1420 pub ungetc: Result<
1421 unsafe extern "C" fn(
1422 __c: ::std::os::raw::c_int,
1423 __stream: *mut FILE,
1424 ) -> ::std::os::raw::c_int,
1425 ::libloading::Error,
1426 >,
1427 pub fread: Result<
1428 unsafe extern "C" fn(
1429 __ptr: *mut ::std::os::raw::c_void,
1430 __size: ::std::os::raw::c_ulong,
1431 __n: ::std::os::raw::c_ulong,
1432 __stream: *mut FILE,
1433 ) -> ::std::os::raw::c_ulong,
1434 ::libloading::Error,
1435 >,
1436 pub fwrite: Result<
1437 unsafe extern "C" fn(
1438 __ptr: *const ::std::os::raw::c_void,
1439 __size: ::std::os::raw::c_ulong,
1440 __n: ::std::os::raw::c_ulong,
1441 __s: *mut FILE,
1442 ) -> ::std::os::raw::c_ulong,
1443 ::libloading::Error,
1444 >,
1445 pub fread_unlocked: Result<
1446 unsafe extern "C" fn(
1447 __ptr: *mut ::std::os::raw::c_void,
1448 __size: size_t,
1449 __n: size_t,
1450 __stream: *mut FILE,
1451 ) -> size_t,
1452 ::libloading::Error,
1453 >,
1454 pub fwrite_unlocked: Result<
1455 unsafe extern "C" fn(
1456 __ptr: *const ::std::os::raw::c_void,
1457 __size: size_t,
1458 __n: size_t,
1459 __stream: *mut FILE,
1460 ) -> size_t,
1461 ::libloading::Error,
1462 >,
1463 pub fseek: Result<
1464 unsafe extern "C" fn(
1465 __stream: *mut FILE,
1466 __off: ::std::os::raw::c_long,
1467 __whence: ::std::os::raw::c_int,
1468 ) -> ::std::os::raw::c_int,
1469 ::libloading::Error,
1470 >,
1471 pub ftell: Result<
1472 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_long,
1473 ::libloading::Error,
1474 >,
1475 pub rewind: Result<unsafe extern "C" fn(__stream: *mut FILE), ::libloading::Error>,
1476 pub fseeko: Result<
1477 unsafe extern "C" fn(
1478 __stream: *mut FILE,
1479 __off: __off_t,
1480 __whence: ::std::os::raw::c_int,
1481 ) -> ::std::os::raw::c_int,
1482 ::libloading::Error,
1483 >,
1484 pub ftello: Result<unsafe extern "C" fn(__stream: *mut FILE) -> __off_t, ::libloading::Error>,
1485 pub fgetpos: Result<
1486 unsafe extern "C" fn(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int,
1487 ::libloading::Error,
1488 >,
1489 pub fsetpos: Result<
1490 unsafe extern "C" fn(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int,
1491 ::libloading::Error,
1492 >,
1493 pub clearerr: Result<unsafe extern "C" fn(__stream: *mut FILE), ::libloading::Error>,
1494 pub feof: Result<
1495 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1496 ::libloading::Error,
1497 >,
1498 pub ferror: Result<
1499 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1500 ::libloading::Error,
1501 >,
1502 pub clearerr_unlocked: Result<unsafe extern "C" fn(__stream: *mut FILE), ::libloading::Error>,
1503 pub feof_unlocked: Result<
1504 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1505 ::libloading::Error,
1506 >,
1507 pub ferror_unlocked: Result<
1508 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1509 ::libloading::Error,
1510 >,
1511 pub perror:
1512 Result<unsafe extern "C" fn(__s: *const ::std::os::raw::c_char), ::libloading::Error>,
1513 pub fileno: Result<
1514 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1515 ::libloading::Error,
1516 >,
1517 pub fileno_unlocked: Result<
1518 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1519 ::libloading::Error,
1520 >,
1521 pub popen: Result<
1522 unsafe extern "C" fn(
1523 __command: *const ::std::os::raw::c_char,
1524 __modes: *const ::std::os::raw::c_char,
1525 ) -> *mut FILE,
1526 ::libloading::Error,
1527 >,
1528 pub pclose: Result<
1529 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1530 ::libloading::Error,
1531 >,
1532 pub ctermid: Result<
1533 unsafe extern "C" fn(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char,
1534 ::libloading::Error,
1535 >,
1536 pub flockfile: Result<unsafe extern "C" fn(__stream: *mut FILE), ::libloading::Error>,
1537 pub ftrylockfile: Result<
1538 unsafe extern "C" fn(__stream: *mut FILE) -> ::std::os::raw::c_int,
1539 ::libloading::Error,
1540 >,
1541 pub funlockfile: Result<unsafe extern "C" fn(__stream: *mut FILE), ::libloading::Error>,
1542 pub __uflow:
1543 Result<unsafe extern "C" fn(arg1: *mut FILE) -> ::std::os::raw::c_int, ::libloading::Error>,
1544 pub __overflow: Result<
1545 unsafe extern "C" fn(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
1546 ::libloading::Error,
1547 >,
1548 pub PD_ConfigCreate: Result<unsafe extern "C" fn() -> *mut PD_Config, ::libloading::Error>,
1549 pub PD_ConfigDestroy:
1550 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1551 pub PD_ConfigSetModel: Result<
1552 unsafe extern "C" fn(
1553 pd_config: *mut PD_Config,
1554 prog_file_path: *const ::std::os::raw::c_char,
1555 params_file_path: *const ::std::os::raw::c_char,
1556 ),
1557 ::libloading::Error,
1558 >,
1559 pub PD_ConfigSetProgFile: Result<
1560 unsafe extern "C" fn(
1561 pd_config: *mut PD_Config,
1562 prog_file_path: *const ::std::os::raw::c_char,
1563 ),
1564 ::libloading::Error,
1565 >,
1566 pub PD_ConfigSetParamsFile: Result<
1567 unsafe extern "C" fn(
1568 pd_config: *mut PD_Config,
1569 params_file_path: *const ::std::os::raw::c_char,
1570 ),
1571 ::libloading::Error,
1572 >,
1573 pub PD_ConfigSetOptimCacheDir: Result<
1574 unsafe extern "C" fn(
1575 pd_config: *mut PD_Config,
1576 opt_cache_dir: *const ::std::os::raw::c_char,
1577 ),
1578 ::libloading::Error,
1579 >,
1580 pub PD_ConfigSetModelDir: Result<
1581 unsafe extern "C" fn(pd_config: *mut PD_Config, model_dir: *const ::std::os::raw::c_char),
1582 ::libloading::Error,
1583 >,
1584 pub PD_ConfigGetModelDir: Result<
1585 unsafe extern "C" fn(pd_config: *mut PD_Config) -> *const ::std::os::raw::c_char,
1586 ::libloading::Error,
1587 >,
1588 pub PD_ConfigGetProgFile: Result<
1589 unsafe extern "C" fn(pd_config: *mut PD_Config) -> *const ::std::os::raw::c_char,
1590 ::libloading::Error,
1591 >,
1592 pub PD_ConfigGetParamsFile: Result<
1593 unsafe extern "C" fn(pd_config: *mut PD_Config) -> *const ::std::os::raw::c_char,
1594 ::libloading::Error,
1595 >,
1596 pub PD_ConfigDisableFCPadding:
1597 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1598 pub PD_ConfigUseFcPadding:
1599 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1600 pub PD_ConfigEnableUseGpu: Result<
1601 unsafe extern "C" fn(
1602 pd_config: *mut PD_Config,
1603 memory_pool_init_size_mb: u64,
1604 device_id: i32,
1605 ),
1606 ::libloading::Error,
1607 >,
1608 pub PD_ConfigDisableGpu:
1609 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1610 pub PD_ConfigUseGpu:
1611 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1612 pub PD_ConfigEnableXpu: Result<
1613 unsafe extern "C" fn(pd_config: *mut PD_Config, l3_workspace_size: i32),
1614 ::libloading::Error,
1615 >,
1616 pub PD_ConfigUseXpu:
1617 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1618 pub PD_ConfigGpuDeviceId:
1619 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> i32, ::libloading::Error>,
1620 pub PD_ConfigXpuDeviceId:
1621 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> i32, ::libloading::Error>,
1622 pub PD_ConfigMemoryPoolInitSizeMb:
1623 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> i32, ::libloading::Error>,
1624 pub PD_ConfigFractionOfGpuMemoryForPool:
1625 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> f32, ::libloading::Error>,
1626 pub PD_ConfigEnableCudnn:
1627 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1628 pub PD_ConfigCudnnEnabled:
1629 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1630 pub PD_ConfigSwitchIrOptim:
1631 Result<unsafe extern "C" fn(pd_config: *mut PD_Config, x: PD_Bool), ::libloading::Error>,
1632 pub PD_ConfigIrOptim:
1633 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1634 pub PD_ConfigEnableTensorRtEngine: Result<
1635 unsafe extern "C" fn(
1636 pd_config: *mut PD_Config,
1637 workspace_size: i32,
1638 max_batch_size: i32,
1639 min_subgraph_size: i32,
1640 precision: PD_PrecisionType,
1641 use_static: PD_Bool,
1642 use_calib_mode: PD_Bool,
1643 ),
1644 ::libloading::Error,
1645 >,
1646 pub PD_ConfigTensorRtEngineEnabled:
1647 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1648 pub PD_ConfigSetTrtDynamicShapeInfo: Result<
1649 unsafe extern "C" fn(
1650 pd_config: *mut PD_Config,
1651 tensor_num: size_t,
1652 tensor_name: *mut *const ::std::os::raw::c_char,
1653 shapes_num: *mut size_t,
1654 min_shape: *mut *mut i32,
1655 max_shape: *mut *mut i32,
1656 optim_shape: *mut *mut i32,
1657 disable_trt_plugin_fp16: PD_Bool,
1658 ),
1659 ::libloading::Error,
1660 >,
1661 pub PD_ConfigDisableTensorRtOPs: Result<
1662 unsafe extern "C" fn(
1663 pd_config: *mut PD_Config,
1664 ops_num: size_t,
1665 ops_name: *mut *const ::std::os::raw::c_char,
1666 ),
1667 ::libloading::Error,
1668 >,
1669 pub PD_ConfigEnableTensorRtOSS:
1670 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1671 pub PD_ConfigTensorRtOssEnabled:
1672 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1673 pub PD_ConfigEnableTensorRtDla:
1674 Result<unsafe extern "C" fn(pd_config: *mut PD_Config, dla_core: i32), ::libloading::Error>,
1675 pub PD_ConfigTensorRtDlaEnabled:
1676 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1677 pub PD_ConfigEnableLiteEngine: Result<
1678 unsafe extern "C" fn(
1679 pd_config: *mut PD_Config,
1680 precision: PD_PrecisionType,
1681 zero_copy: PD_Bool,
1682 passes_filter_num: size_t,
1683 passes_filter: *mut *const ::std::os::raw::c_char,
1684 ops_filter_num: size_t,
1685 ops_filter: *mut *const ::std::os::raw::c_char,
1686 ),
1687 ::libloading::Error,
1688 >,
1689 pub PD_ConfigLiteEngineEnabled:
1690 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1691 pub PD_ConfigSwitchIrDebug:
1692 Result<unsafe extern "C" fn(pd_config: *mut PD_Config, x: PD_Bool), ::libloading::Error>,
1693 pub PD_ConfigEnableMKLDNN:
1694 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1695 pub PD_ConfigSetMkldnnCacheCapacity:
1696 Result<unsafe extern "C" fn(pd_config: *mut PD_Config, capacity: i32), ::libloading::Error>,
1697 pub PD_ConfigMkldnnEnabled:
1698 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1699 pub PD_ConfigSetCpuMathLibraryNumThreads: Result<
1700 unsafe extern "C" fn(pd_config: *mut PD_Config, cpu_math_library_num_threads: i32),
1701 ::libloading::Error,
1702 >,
1703 pub PD_ConfigGetCpuMathLibraryNumThreads:
1704 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> i32, ::libloading::Error>,
1705 pub PD_ConfigSetMkldnnOp: Result<
1706 unsafe extern "C" fn(
1707 pd_config: *mut PD_Config,
1708 ops_num: size_t,
1709 op_list: *mut *const ::std::os::raw::c_char,
1710 ),
1711 ::libloading::Error,
1712 >,
1713 pub PD_ConfigEnableMkldnnQuantizer:
1714 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1715 pub PD_ConfigMkldnnQuantizerEnabled:
1716 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1717 pub PD_ConfigEnableMkldnnBfloat16:
1718 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1719 pub PD_ConfigMkldnnBfloat16Enabled:
1720 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1721 pub PD_ConfigSetBfloat16Op: Result<
1722 unsafe extern "C" fn(
1723 pd_config: *mut PD_Config,
1724 ops_num: size_t,
1725 op_list: *mut *const ::std::os::raw::c_char,
1726 ),
1727 ::libloading::Error,
1728 >,
1729 pub PD_ConfigEnableGpuMultiStream:
1730 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1731 pub PD_ConfigThreadLocalStreamEnabled:
1732 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1733 pub PD_ConfigSetModelBuffer: Result<
1734 unsafe extern "C" fn(
1735 pd_config: *mut PD_Config,
1736 prog_buffer: *const ::std::os::raw::c_char,
1737 prog_buffer_size: size_t,
1738 params_buffer: *const ::std::os::raw::c_char,
1739 params_buffer_size: size_t,
1740 ),
1741 ::libloading::Error,
1742 >,
1743 pub PD_ConfigModelFromMemory:
1744 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1745 pub PD_ConfigEnableMemoryOptim:
1746 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1747 pub PD_ConfigMemoryOptimEnabled:
1748 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1749 pub PD_ConfigEnableProfile:
1750 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1751 pub PD_ConfigProfileEnabled:
1752 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1753 pub PD_ConfigDisableGlogInfo:
1754 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1755 pub PD_ConfigGlogInfoDisabled:
1756 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1757 pub PD_ConfigSetInvalid:
1758 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1759 pub PD_ConfigIsValid:
1760 Result<unsafe extern "C" fn(pd_config: *mut PD_Config) -> PD_Bool, ::libloading::Error>,
1761 pub PD_ConfigPartiallyRelease:
1762 Result<unsafe extern "C" fn(pd_config: *mut PD_Config), ::libloading::Error>,
1763 pub PD_PredictorCreate: Result<
1764 unsafe extern "C" fn(pd_config: *mut PD_Config) -> *mut PD_Predictor,
1765 ::libloading::Error,
1766 >,
1767 pub PD_PredictorClone: Result<
1768 unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> *mut PD_Predictor,
1769 ::libloading::Error,
1770 >,
1771 pub PD_PredictorGetInputNames: Result<
1772 unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> *mut PD_OneDimArrayCstr,
1773 ::libloading::Error,
1774 >,
1775 pub PD_PredictorGetOutputNames: Result<
1776 unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> *mut PD_OneDimArrayCstr,
1777 ::libloading::Error,
1778 >,
1779 pub PD_PredictorGetInputNum: Result<
1780 unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> size_t,
1781 ::libloading::Error,
1782 >,
1783 pub PD_PredictorGetOutputNum: Result<
1784 unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> size_t,
1785 ::libloading::Error,
1786 >,
1787 pub PD_PredictorGetInputHandle: Result<
1788 unsafe extern "C" fn(
1789 pd_predictor: *mut PD_Predictor,
1790 name: *const ::std::os::raw::c_char,
1791 ) -> *mut PD_Tensor,
1792 ::libloading::Error,
1793 >,
1794 pub PD_PredictorGetOutputHandle: Result<
1795 unsafe extern "C" fn(
1796 pd_predictor: *mut PD_Predictor,
1797 name: *const ::std::os::raw::c_char,
1798 ) -> *mut PD_Tensor,
1799 ::libloading::Error,
1800 >,
1801 pub PD_PredictorRun: Result<
1802 unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> PD_Bool,
1803 ::libloading::Error,
1804 >,
1805 pub PD_PredictorClearIntermediateTensor:
1806 Result<unsafe extern "C" fn(pd_predictor: *mut PD_Predictor), ::libloading::Error>,
1807 pub PD_PredictorTryShrinkMemory:
1808 Result<unsafe extern "C" fn(pd_predictor: *mut PD_Predictor) -> u64, ::libloading::Error>,
1809 pub PD_PredictorDestroy:
1810 Result<unsafe extern "C" fn(pd_predictor: *mut PD_Predictor), ::libloading::Error>,
1811 pub PD_TensorDestroy:
1812 Result<unsafe extern "C" fn(pd_tensor: *mut PD_Tensor), ::libloading::Error>,
1813 pub PD_TensorReshape: Result<
1814 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, shape_size: size_t, shape: *mut i32),
1815 ::libloading::Error,
1816 >,
1817 pub PD_TensorMutableDataFloat: Result<
1818 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, place: PD_PlaceType) -> *mut f32,
1819 ::libloading::Error,
1820 >,
1821 pub PD_TensorMutableDataInt64: Result<
1822 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, place: PD_PlaceType) -> *mut i64,
1823 ::libloading::Error,
1824 >,
1825 pub PD_TensorMutableDataInt32: Result<
1826 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, place: PD_PlaceType) -> *mut i32,
1827 ::libloading::Error,
1828 >,
1829 pub PD_TensorMutableDataUint8: Result<
1830 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, place: PD_PlaceType) -> *mut u8,
1831 ::libloading::Error,
1832 >,
1833 pub PD_TensorMutableDataInt8: Result<
1834 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, place: PD_PlaceType) -> *mut i8,
1835 ::libloading::Error,
1836 >,
1837 pub PD_TensorDataFloat: Result<
1838 unsafe extern "C" fn(
1839 pd_tensor: *mut PD_Tensor,
1840 place: *mut PD_PlaceType,
1841 size: *mut i32,
1842 ) -> *mut f32,
1843 ::libloading::Error,
1844 >,
1845 pub PD_TensorDataInt64: Result<
1846 unsafe extern "C" fn(
1847 pd_tensor: *mut PD_Tensor,
1848 place: *mut PD_PlaceType,
1849 size: *mut i32,
1850 ) -> *mut i64,
1851 ::libloading::Error,
1852 >,
1853 pub PD_TensorDataInt32: Result<
1854 unsafe extern "C" fn(
1855 pd_tensor: *mut PD_Tensor,
1856 place: *mut PD_PlaceType,
1857 size: *mut i32,
1858 ) -> *mut i32,
1859 ::libloading::Error,
1860 >,
1861 pub PD_TensorDataUint8: Result<
1862 unsafe extern "C" fn(
1863 pd_tensor: *mut PD_Tensor,
1864 place: *mut PD_PlaceType,
1865 size: *mut i32,
1866 ) -> *mut u8,
1867 ::libloading::Error,
1868 >,
1869 pub PD_TensorDataInt8: Result<
1870 unsafe extern "C" fn(
1871 pd_tensor: *mut PD_Tensor,
1872 place: *mut PD_PlaceType,
1873 size: *mut i32,
1874 ) -> *mut i8,
1875 ::libloading::Error,
1876 >,
1877 pub PD_TensorCopyFromCpuFloat: Result<
1878 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *const f32),
1879 ::libloading::Error,
1880 >,
1881 pub PD_TensorCopyFromCpuInt64: Result<
1882 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *const i64),
1883 ::libloading::Error,
1884 >,
1885 pub PD_TensorCopyFromCpuInt32: Result<
1886 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *const i32),
1887 ::libloading::Error,
1888 >,
1889 pub PD_TensorCopyFromCpuUint8: Result<
1890 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *const u8),
1891 ::libloading::Error,
1892 >,
1893 pub PD_TensorCopyFromCpuInt8: Result<
1894 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *const i8),
1895 ::libloading::Error,
1896 >,
1897 pub PD_TensorCopyToCpuFloat: Result<
1898 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *mut f32),
1899 ::libloading::Error,
1900 >,
1901 pub PD_TensorCopyToCpuInt64: Result<
1902 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *mut i64),
1903 ::libloading::Error,
1904 >,
1905 pub PD_TensorCopyToCpuInt32: Result<
1906 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *mut i32),
1907 ::libloading::Error,
1908 >,
1909 pub PD_TensorCopyToCpuUint8:
1910 Result<unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *mut u8), ::libloading::Error>,
1911 pub PD_TensorCopyToCpuInt8:
1912 Result<unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, data: *mut i8), ::libloading::Error>,
1913 pub PD_TensorGetShape: Result<
1914 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor) -> *mut PD_OneDimArrayInt32,
1915 ::libloading::Error,
1916 >,
1917 pub PD_TensorSetLod: Result<
1918 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor, lod: *mut PD_TwoDimArraySize),
1919 ::libloading::Error,
1920 >,
1921 pub PD_TensorGetLod: Result<
1922 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor) -> *mut PD_TwoDimArraySize,
1923 ::libloading::Error,
1924 >,
1925 pub PD_TensorGetName: Result<
1926 unsafe extern "C" fn(pd_tensor: *mut PD_Tensor) -> *const ::std::os::raw::c_char,
1927 ::libloading::Error,
1928 >,
1929 pub PD_TensorGetDataType:
1930 Result<unsafe extern "C" fn(pd_tensor: *mut PD_Tensor) -> PD_DataType, ::libloading::Error>,
1931 pub PD_OneDimArrayInt32Destroy:
1932 Result<unsafe extern "C" fn(array: *mut PD_OneDimArrayInt32), ::libloading::Error>,
1933 pub PD_OneDimArrayCstrDestroy:
1934 Result<unsafe extern "C" fn(array: *mut PD_OneDimArrayCstr), ::libloading::Error>,
1935 pub PD_OneDimArraySizeDestroy:
1936 Result<unsafe extern "C" fn(array: *mut PD_OneDimArraySize), ::libloading::Error>,
1937 pub PD_TwoDimArraySizeDestroy:
1938 Result<unsafe extern "C" fn(array: *mut PD_TwoDimArraySize), ::libloading::Error>,
1939}
1940impl paddle_inference_c {
1941 pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
1942 where
1943 P: AsRef<::std::ffi::OsStr>,
1944 {
1945 let library = ::libloading::Library::new(path)?;
1946 Self::from_library(library)
1947 }
1948 pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
1949 where
1950 L: Into<::libloading::Library>,
1951 {
1952 let __library = library.into();
1953 let remove = __library.get(b"remove\0").map(|sym| *sym);
1954 let rename = __library.get(b"rename\0").map(|sym| *sym);
1955 let renameat = __library.get(b"renameat\0").map(|sym| *sym);
1956 let tmpfile = __library.get(b"tmpfile\0").map(|sym| *sym);
1957 let tmpnam = __library.get(b"tmpnam\0").map(|sym| *sym);
1958 let tmpnam_r = __library.get(b"tmpnam_r\0").map(|sym| *sym);
1959 let tempnam = __library.get(b"tempnam\0").map(|sym| *sym);
1960 let fclose = __library.get(b"fclose\0").map(|sym| *sym);
1961 let fflush = __library.get(b"fflush\0").map(|sym| *sym);
1962 let fflush_unlocked = __library.get(b"fflush_unlocked\0").map(|sym| *sym);
1963 let fopen = __library.get(b"fopen\0").map(|sym| *sym);
1964 let freopen = __library.get(b"freopen\0").map(|sym| *sym);
1965 let fdopen = __library.get(b"fdopen\0").map(|sym| *sym);
1966 let fmemopen = __library.get(b"fmemopen\0").map(|sym| *sym);
1967 let open_memstream = __library.get(b"open_memstream\0").map(|sym| *sym);
1968 let setbuf = __library.get(b"setbuf\0").map(|sym| *sym);
1969 let setvbuf = __library.get(b"setvbuf\0").map(|sym| *sym);
1970 let setbuffer = __library.get(b"setbuffer\0").map(|sym| *sym);
1971 let setlinebuf = __library.get(b"setlinebuf\0").map(|sym| *sym);
1972 let fprintf = __library.get(b"fprintf\0").map(|sym| *sym);
1973 let printf = __library.get(b"printf\0").map(|sym| *sym);
1974 let sprintf = __library.get(b"sprintf\0").map(|sym| *sym);
1975 let vfprintf = __library.get(b"vfprintf\0").map(|sym| *sym);
1976 let vprintf = __library.get(b"vprintf\0").map(|sym| *sym);
1977 let vsprintf = __library.get(b"vsprintf\0").map(|sym| *sym);
1978 let snprintf = __library.get(b"snprintf\0").map(|sym| *sym);
1979 let vsnprintf = __library.get(b"vsnprintf\0").map(|sym| *sym);
1980 let vdprintf = __library.get(b"vdprintf\0").map(|sym| *sym);
1981 let dprintf = __library.get(b"dprintf\0").map(|sym| *sym);
1982 let fscanf = __library.get(b"fscanf\0").map(|sym| *sym);
1983 let scanf = __library.get(b"scanf\0").map(|sym| *sym);
1984 let sscanf = __library.get(b"sscanf\0").map(|sym| *sym);
1985 let fscanf1 = __library.get(b"fscanf1\0").map(|sym| *sym);
1986 let scanf1 = __library.get(b"scanf1\0").map(|sym| *sym);
1987 let sscanf1 = __library.get(b"sscanf1\0").map(|sym| *sym);
1988 let vfscanf = __library.get(b"vfscanf\0").map(|sym| *sym);
1989 let vscanf = __library.get(b"vscanf\0").map(|sym| *sym);
1990 let vsscanf = __library.get(b"vsscanf\0").map(|sym| *sym);
1991 let vfscanf1 = __library.get(b"vfscanf1\0").map(|sym| *sym);
1992 let vscanf1 = __library.get(b"vscanf1\0").map(|sym| *sym);
1993 let vsscanf1 = __library.get(b"vsscanf1\0").map(|sym| *sym);
1994 let fgetc = __library.get(b"fgetc\0").map(|sym| *sym);
1995 let getc = __library.get(b"getc\0").map(|sym| *sym);
1996 let getchar = __library.get(b"getchar\0").map(|sym| *sym);
1997 let getc_unlocked = __library.get(b"getc_unlocked\0").map(|sym| *sym);
1998 let getchar_unlocked = __library.get(b"getchar_unlocked\0").map(|sym| *sym);
1999 let fgetc_unlocked = __library.get(b"fgetc_unlocked\0").map(|sym| *sym);
2000 let fputc = __library.get(b"fputc\0").map(|sym| *sym);
2001 let putc = __library.get(b"putc\0").map(|sym| *sym);
2002 let putchar = __library.get(b"putchar\0").map(|sym| *sym);
2003 let fputc_unlocked = __library.get(b"fputc_unlocked\0").map(|sym| *sym);
2004 let putc_unlocked = __library.get(b"putc_unlocked\0").map(|sym| *sym);
2005 let putchar_unlocked = __library.get(b"putchar_unlocked\0").map(|sym| *sym);
2006 let getw = __library.get(b"getw\0").map(|sym| *sym);
2007 let putw = __library.get(b"putw\0").map(|sym| *sym);
2008 let fgets = __library.get(b"fgets\0").map(|sym| *sym);
2009 let __getdelim = __library.get(b"__getdelim\0").map(|sym| *sym);
2010 let getdelim = __library.get(b"getdelim\0").map(|sym| *sym);
2011 let getline = __library.get(b"getline\0").map(|sym| *sym);
2012 let fputs = __library.get(b"fputs\0").map(|sym| *sym);
2013 let puts = __library.get(b"puts\0").map(|sym| *sym);
2014 let ungetc = __library.get(b"ungetc\0").map(|sym| *sym);
2015 let fread = __library.get(b"fread\0").map(|sym| *sym);
2016 let fwrite = __library.get(b"fwrite\0").map(|sym| *sym);
2017 let fread_unlocked = __library.get(b"fread_unlocked\0").map(|sym| *sym);
2018 let fwrite_unlocked = __library.get(b"fwrite_unlocked\0").map(|sym| *sym);
2019 let fseek = __library.get(b"fseek\0").map(|sym| *sym);
2020 let ftell = __library.get(b"ftell\0").map(|sym| *sym);
2021 let rewind = __library.get(b"rewind\0").map(|sym| *sym);
2022 let fseeko = __library.get(b"fseeko\0").map(|sym| *sym);
2023 let ftello = __library.get(b"ftello\0").map(|sym| *sym);
2024 let fgetpos = __library.get(b"fgetpos\0").map(|sym| *sym);
2025 let fsetpos = __library.get(b"fsetpos\0").map(|sym| *sym);
2026 let clearerr = __library.get(b"clearerr\0").map(|sym| *sym);
2027 let feof = __library.get(b"feof\0").map(|sym| *sym);
2028 let ferror = __library.get(b"ferror\0").map(|sym| *sym);
2029 let clearerr_unlocked = __library.get(b"clearerr_unlocked\0").map(|sym| *sym);
2030 let feof_unlocked = __library.get(b"feof_unlocked\0").map(|sym| *sym);
2031 let ferror_unlocked = __library.get(b"ferror_unlocked\0").map(|sym| *sym);
2032 let perror = __library.get(b"perror\0").map(|sym| *sym);
2033 let fileno = __library.get(b"fileno\0").map(|sym| *sym);
2034 let fileno_unlocked = __library.get(b"fileno_unlocked\0").map(|sym| *sym);
2035 let popen = __library.get(b"popen\0").map(|sym| *sym);
2036 let pclose = __library.get(b"pclose\0").map(|sym| *sym);
2037 let ctermid = __library.get(b"ctermid\0").map(|sym| *sym);
2038 let flockfile = __library.get(b"flockfile\0").map(|sym| *sym);
2039 let ftrylockfile = __library.get(b"ftrylockfile\0").map(|sym| *sym);
2040 let funlockfile = __library.get(b"funlockfile\0").map(|sym| *sym);
2041 let __uflow = __library.get(b"__uflow\0").map(|sym| *sym);
2042 let __overflow = __library.get(b"__overflow\0").map(|sym| *sym);
2043 let PD_ConfigCreate = __library.get(b"PD_ConfigCreate\0").map(|sym| *sym);
2044 let PD_ConfigDestroy = __library.get(b"PD_ConfigDestroy\0").map(|sym| *sym);
2045 let PD_ConfigSetModel = __library.get(b"PD_ConfigSetModel\0").map(|sym| *sym);
2046 let PD_ConfigSetProgFile = __library.get(b"PD_ConfigSetProgFile\0").map(|sym| *sym);
2047 let PD_ConfigSetParamsFile = __library.get(b"PD_ConfigSetParamsFile\0").map(|sym| *sym);
2048 let PD_ConfigSetOptimCacheDir = __library
2049 .get(b"PD_ConfigSetOptimCacheDir\0")
2050 .map(|sym| *sym);
2051 let PD_ConfigSetModelDir = __library.get(b"PD_ConfigSetModelDir\0").map(|sym| *sym);
2052 let PD_ConfigGetModelDir = __library.get(b"PD_ConfigGetModelDir\0").map(|sym| *sym);
2053 let PD_ConfigGetProgFile = __library.get(b"PD_ConfigGetProgFile\0").map(|sym| *sym);
2054 let PD_ConfigGetParamsFile = __library.get(b"PD_ConfigGetParamsFile\0").map(|sym| *sym);
2055 let PD_ConfigDisableFCPadding = __library
2056 .get(b"PD_ConfigDisableFCPadding\0")
2057 .map(|sym| *sym);
2058 let PD_ConfigUseFcPadding = __library.get(b"PD_ConfigUseFcPadding\0").map(|sym| *sym);
2059 let PD_ConfigEnableUseGpu = __library.get(b"PD_ConfigEnableUseGpu\0").map(|sym| *sym);
2060 let PD_ConfigDisableGpu = __library.get(b"PD_ConfigDisableGpu\0").map(|sym| *sym);
2061 let PD_ConfigUseGpu = __library.get(b"PD_ConfigUseGpu\0").map(|sym| *sym);
2062 let PD_ConfigEnableXpu = __library.get(b"PD_ConfigEnableXpu\0").map(|sym| *sym);
2063 let PD_ConfigUseXpu = __library.get(b"PD_ConfigUseXpu\0").map(|sym| *sym);
2064 let PD_ConfigGpuDeviceId = __library.get(b"PD_ConfigGpuDeviceId\0").map(|sym| *sym);
2065 let PD_ConfigXpuDeviceId = __library.get(b"PD_ConfigXpuDeviceId\0").map(|sym| *sym);
2066 let PD_ConfigMemoryPoolInitSizeMb = __library
2067 .get(b"PD_ConfigMemoryPoolInitSizeMb\0")
2068 .map(|sym| *sym);
2069 let PD_ConfigFractionOfGpuMemoryForPool = __library
2070 .get(b"PD_ConfigFractionOfGpuMemoryForPool\0")
2071 .map(|sym| *sym);
2072 let PD_ConfigEnableCudnn = __library.get(b"PD_ConfigEnableCudnn\0").map(|sym| *sym);
2073 let PD_ConfigCudnnEnabled = __library.get(b"PD_ConfigCudnnEnabled\0").map(|sym| *sym);
2074 let PD_ConfigSwitchIrOptim = __library.get(b"PD_ConfigSwitchIrOptim\0").map(|sym| *sym);
2075 let PD_ConfigIrOptim = __library.get(b"PD_ConfigIrOptim\0").map(|sym| *sym);
2076 let PD_ConfigEnableTensorRtEngine = __library
2077 .get(b"PD_ConfigEnableTensorRtEngine\0")
2078 .map(|sym| *sym);
2079 let PD_ConfigTensorRtEngineEnabled = __library
2080 .get(b"PD_ConfigTensorRtEngineEnabled\0")
2081 .map(|sym| *sym);
2082 let PD_ConfigSetTrtDynamicShapeInfo = __library
2083 .get(b"PD_ConfigSetTrtDynamicShapeInfo\0")
2084 .map(|sym| *sym);
2085 let PD_ConfigDisableTensorRtOPs = __library
2086 .get(b"PD_ConfigDisableTensorRtOPs\0")
2087 .map(|sym| *sym);
2088 let PD_ConfigEnableTensorRtOSS = __library
2089 .get(b"PD_ConfigEnableTensorRtOSS\0")
2090 .map(|sym| *sym);
2091 let PD_ConfigTensorRtOssEnabled = __library
2092 .get(b"PD_ConfigTensorRtOssEnabled\0")
2093 .map(|sym| *sym);
2094 let PD_ConfigEnableTensorRtDla = __library
2095 .get(b"PD_ConfigEnableTensorRtDla\0")
2096 .map(|sym| *sym);
2097 let PD_ConfigTensorRtDlaEnabled = __library
2098 .get(b"PD_ConfigTensorRtDlaEnabled\0")
2099 .map(|sym| *sym);
2100 let PD_ConfigEnableLiteEngine = __library
2101 .get(b"PD_ConfigEnableLiteEngine\0")
2102 .map(|sym| *sym);
2103 let PD_ConfigLiteEngineEnabled = __library
2104 .get(b"PD_ConfigLiteEngineEnabled\0")
2105 .map(|sym| *sym);
2106 let PD_ConfigSwitchIrDebug = __library.get(b"PD_ConfigSwitchIrDebug\0").map(|sym| *sym);
2107 let PD_ConfigEnableMKLDNN = __library.get(b"PD_ConfigEnableMKLDNN\0").map(|sym| *sym);
2108 let PD_ConfigSetMkldnnCacheCapacity = __library
2109 .get(b"PD_ConfigSetMkldnnCacheCapacity\0")
2110 .map(|sym| *sym);
2111 let PD_ConfigMkldnnEnabled = __library.get(b"PD_ConfigMkldnnEnabled\0").map(|sym| *sym);
2112 let PD_ConfigSetCpuMathLibraryNumThreads = __library
2113 .get(b"PD_ConfigSetCpuMathLibraryNumThreads\0")
2114 .map(|sym| *sym);
2115 let PD_ConfigGetCpuMathLibraryNumThreads = __library
2116 .get(b"PD_ConfigGetCpuMathLibraryNumThreads\0")
2117 .map(|sym| *sym);
2118 let PD_ConfigSetMkldnnOp = __library.get(b"PD_ConfigSetMkldnnOp\0").map(|sym| *sym);
2119 let PD_ConfigEnableMkldnnQuantizer = __library
2120 .get(b"PD_ConfigEnableMkldnnQuantizer\0")
2121 .map(|sym| *sym);
2122 let PD_ConfigMkldnnQuantizerEnabled = __library
2123 .get(b"PD_ConfigMkldnnQuantizerEnabled\0")
2124 .map(|sym| *sym);
2125 let PD_ConfigEnableMkldnnBfloat16 = __library
2126 .get(b"PD_ConfigEnableMkldnnBfloat16\0")
2127 .map(|sym| *sym);
2128 let PD_ConfigMkldnnBfloat16Enabled = __library
2129 .get(b"PD_ConfigMkldnnBfloat16Enabled\0")
2130 .map(|sym| *sym);
2131 let PD_ConfigSetBfloat16Op = __library.get(b"PD_ConfigSetBfloat16Op\0").map(|sym| *sym);
2132 let PD_ConfigEnableGpuMultiStream = __library
2133 .get(b"PD_ConfigEnableGpuMultiStream\0")
2134 .map(|sym| *sym);
2135 let PD_ConfigThreadLocalStreamEnabled = __library
2136 .get(b"PD_ConfigThreadLocalStreamEnabled\0")
2137 .map(|sym| *sym);
2138 let PD_ConfigSetModelBuffer = __library.get(b"PD_ConfigSetModelBuffer\0").map(|sym| *sym);
2139 let PD_ConfigModelFromMemory = __library.get(b"PD_ConfigModelFromMemory\0").map(|sym| *sym);
2140 let PD_ConfigEnableMemoryOptim = __library
2141 .get(b"PD_ConfigEnableMemoryOptim\0")
2142 .map(|sym| *sym);
2143 let PD_ConfigMemoryOptimEnabled = __library
2144 .get(b"PD_ConfigMemoryOptimEnabled\0")
2145 .map(|sym| *sym);
2146 let PD_ConfigEnableProfile = __library.get(b"PD_ConfigEnableProfile\0").map(|sym| *sym);
2147 let PD_ConfigProfileEnabled = __library.get(b"PD_ConfigProfileEnabled\0").map(|sym| *sym);
2148 let PD_ConfigDisableGlogInfo = __library.get(b"PD_ConfigDisableGlogInfo\0").map(|sym| *sym);
2149 let PD_ConfigGlogInfoDisabled = __library
2150 .get(b"PD_ConfigGlogInfoDisabled\0")
2151 .map(|sym| *sym);
2152 let PD_ConfigSetInvalid = __library.get(b"PD_ConfigSetInvalid\0").map(|sym| *sym);
2153 let PD_ConfigIsValid = __library.get(b"PD_ConfigIsValid\0").map(|sym| *sym);
2154 let PD_ConfigPartiallyRelease = __library
2155 .get(b"PD_ConfigPartiallyRelease\0")
2156 .map(|sym| *sym);
2157 let PD_PredictorCreate = __library.get(b"PD_PredictorCreate\0").map(|sym| *sym);
2158 let PD_PredictorClone = __library.get(b"PD_PredictorClone\0").map(|sym| *sym);
2159 let PD_PredictorGetInputNames = __library
2160 .get(b"PD_PredictorGetInputNames\0")
2161 .map(|sym| *sym);
2162 let PD_PredictorGetOutputNames = __library
2163 .get(b"PD_PredictorGetOutputNames\0")
2164 .map(|sym| *sym);
2165 let PD_PredictorGetInputNum = __library.get(b"PD_PredictorGetInputNum\0").map(|sym| *sym);
2166 let PD_PredictorGetOutputNum = __library.get(b"PD_PredictorGetOutputNum\0").map(|sym| *sym);
2167 let PD_PredictorGetInputHandle = __library
2168 .get(b"PD_PredictorGetInputHandle\0")
2169 .map(|sym| *sym);
2170 let PD_PredictorGetOutputHandle = __library
2171 .get(b"PD_PredictorGetOutputHandle\0")
2172 .map(|sym| *sym);
2173 let PD_PredictorRun = __library.get(b"PD_PredictorRun\0").map(|sym| *sym);
2174 let PD_PredictorClearIntermediateTensor = __library
2175 .get(b"PD_PredictorClearIntermediateTensor\0")
2176 .map(|sym| *sym);
2177 let PD_PredictorTryShrinkMemory = __library
2178 .get(b"PD_PredictorTryShrinkMemory\0")
2179 .map(|sym| *sym);
2180 let PD_PredictorDestroy = __library.get(b"PD_PredictorDestroy\0").map(|sym| *sym);
2181 let PD_TensorDestroy = __library.get(b"PD_TensorDestroy\0").map(|sym| *sym);
2182 let PD_TensorReshape = __library.get(b"PD_TensorReshape\0").map(|sym| *sym);
2183 let PD_TensorMutableDataFloat = __library
2184 .get(b"PD_TensorMutableDataFloat\0")
2185 .map(|sym| *sym);
2186 let PD_TensorMutableDataInt64 = __library
2187 .get(b"PD_TensorMutableDataInt64\0")
2188 .map(|sym| *sym);
2189 let PD_TensorMutableDataInt32 = __library
2190 .get(b"PD_TensorMutableDataInt32\0")
2191 .map(|sym| *sym);
2192 let PD_TensorMutableDataUint8 = __library
2193 .get(b"PD_TensorMutableDataUint8\0")
2194 .map(|sym| *sym);
2195 let PD_TensorMutableDataInt8 = __library.get(b"PD_TensorMutableDataInt8\0").map(|sym| *sym);
2196 let PD_TensorDataFloat = __library.get(b"PD_TensorDataFloat\0").map(|sym| *sym);
2197 let PD_TensorDataInt64 = __library.get(b"PD_TensorDataInt64\0").map(|sym| *sym);
2198 let PD_TensorDataInt32 = __library.get(b"PD_TensorDataInt32\0").map(|sym| *sym);
2199 let PD_TensorDataUint8 = __library.get(b"PD_TensorDataUint8\0").map(|sym| *sym);
2200 let PD_TensorDataInt8 = __library.get(b"PD_TensorDataInt8\0").map(|sym| *sym);
2201 let PD_TensorCopyFromCpuFloat = __library
2202 .get(b"PD_TensorCopyFromCpuFloat\0")
2203 .map(|sym| *sym);
2204 let PD_TensorCopyFromCpuInt64 = __library
2205 .get(b"PD_TensorCopyFromCpuInt64\0")
2206 .map(|sym| *sym);
2207 let PD_TensorCopyFromCpuInt32 = __library
2208 .get(b"PD_TensorCopyFromCpuInt32\0")
2209 .map(|sym| *sym);
2210 let PD_TensorCopyFromCpuUint8 = __library
2211 .get(b"PD_TensorCopyFromCpuUint8\0")
2212 .map(|sym| *sym);
2213 let PD_TensorCopyFromCpuInt8 = __library.get(b"PD_TensorCopyFromCpuInt8\0").map(|sym| *sym);
2214 let PD_TensorCopyToCpuFloat = __library.get(b"PD_TensorCopyToCpuFloat\0").map(|sym| *sym);
2215 let PD_TensorCopyToCpuInt64 = __library.get(b"PD_TensorCopyToCpuInt64\0").map(|sym| *sym);
2216 let PD_TensorCopyToCpuInt32 = __library.get(b"PD_TensorCopyToCpuInt32\0").map(|sym| *sym);
2217 let PD_TensorCopyToCpuUint8 = __library.get(b"PD_TensorCopyToCpuUint8\0").map(|sym| *sym);
2218 let PD_TensorCopyToCpuInt8 = __library.get(b"PD_TensorCopyToCpuInt8\0").map(|sym| *sym);
2219 let PD_TensorGetShape = __library.get(b"PD_TensorGetShape\0").map(|sym| *sym);
2220 let PD_TensorSetLod = __library.get(b"PD_TensorSetLod\0").map(|sym| *sym);
2221 let PD_TensorGetLod = __library.get(b"PD_TensorGetLod\0").map(|sym| *sym);
2222 let PD_TensorGetName = __library.get(b"PD_TensorGetName\0").map(|sym| *sym);
2223 let PD_TensorGetDataType = __library.get(b"PD_TensorGetDataType\0").map(|sym| *sym);
2224 let PD_OneDimArrayInt32Destroy = __library
2225 .get(b"PD_OneDimArrayInt32Destroy\0")
2226 .map(|sym| *sym);
2227 let PD_OneDimArrayCstrDestroy = __library
2228 .get(b"PD_OneDimArrayCstrDestroy\0")
2229 .map(|sym| *sym);
2230 let PD_OneDimArraySizeDestroy = __library
2231 .get(b"PD_OneDimArraySizeDestroy\0")
2232 .map(|sym| *sym);
2233 let PD_TwoDimArraySizeDestroy = __library
2234 .get(b"PD_TwoDimArraySizeDestroy\0")
2235 .map(|sym| *sym);
2236 Ok(paddle_inference_c {
2237 __library,
2238 remove,
2239 rename,
2240 renameat,
2241 tmpfile,
2242 tmpnam,
2243 tmpnam_r,
2244 tempnam,
2245 fclose,
2246 fflush,
2247 fflush_unlocked,
2248 fopen,
2249 freopen,
2250 fdopen,
2251 fmemopen,
2252 open_memstream,
2253 setbuf,
2254 setvbuf,
2255 setbuffer,
2256 setlinebuf,
2257 fprintf,
2258 printf,
2259 sprintf,
2260 vfprintf,
2261 vprintf,
2262 vsprintf,
2263 snprintf,
2264 vsnprintf,
2265 vdprintf,
2266 dprintf,
2267 fscanf,
2268 scanf,
2269 sscanf,
2270 fscanf1,
2271 scanf1,
2272 sscanf1,
2273 vfscanf,
2274 vscanf,
2275 vsscanf,
2276 vfscanf1,
2277 vscanf1,
2278 vsscanf1,
2279 fgetc,
2280 getc,
2281 getchar,
2282 getc_unlocked,
2283 getchar_unlocked,
2284 fgetc_unlocked,
2285 fputc,
2286 putc,
2287 putchar,
2288 fputc_unlocked,
2289 putc_unlocked,
2290 putchar_unlocked,
2291 getw,
2292 putw,
2293 fgets,
2294 __getdelim,
2295 getdelim,
2296 getline,
2297 fputs,
2298 puts,
2299 ungetc,
2300 fread,
2301 fwrite,
2302 fread_unlocked,
2303 fwrite_unlocked,
2304 fseek,
2305 ftell,
2306 rewind,
2307 fseeko,
2308 ftello,
2309 fgetpos,
2310 fsetpos,
2311 clearerr,
2312 feof,
2313 ferror,
2314 clearerr_unlocked,
2315 feof_unlocked,
2316 ferror_unlocked,
2317 perror,
2318 fileno,
2319 fileno_unlocked,
2320 popen,
2321 pclose,
2322 ctermid,
2323 flockfile,
2324 ftrylockfile,
2325 funlockfile,
2326 __uflow,
2327 __overflow,
2328 PD_ConfigCreate,
2329 PD_ConfigDestroy,
2330 PD_ConfigSetModel,
2331 PD_ConfigSetProgFile,
2332 PD_ConfigSetParamsFile,
2333 PD_ConfigSetOptimCacheDir,
2334 PD_ConfigSetModelDir,
2335 PD_ConfigGetModelDir,
2336 PD_ConfigGetProgFile,
2337 PD_ConfigGetParamsFile,
2338 PD_ConfigDisableFCPadding,
2339 PD_ConfigUseFcPadding,
2340 PD_ConfigEnableUseGpu,
2341 PD_ConfigDisableGpu,
2342 PD_ConfigUseGpu,
2343 PD_ConfigEnableXpu,
2344 PD_ConfigUseXpu,
2345 PD_ConfigGpuDeviceId,
2346 PD_ConfigXpuDeviceId,
2347 PD_ConfigMemoryPoolInitSizeMb,
2348 PD_ConfigFractionOfGpuMemoryForPool,
2349 PD_ConfigEnableCudnn,
2350 PD_ConfigCudnnEnabled,
2351 PD_ConfigSwitchIrOptim,
2352 PD_ConfigIrOptim,
2353 PD_ConfigEnableTensorRtEngine,
2354 PD_ConfigTensorRtEngineEnabled,
2355 PD_ConfigSetTrtDynamicShapeInfo,
2356 PD_ConfigDisableTensorRtOPs,
2357 PD_ConfigEnableTensorRtOSS,
2358 PD_ConfigTensorRtOssEnabled,
2359 PD_ConfigEnableTensorRtDla,
2360 PD_ConfigTensorRtDlaEnabled,
2361 PD_ConfigEnableLiteEngine,
2362 PD_ConfigLiteEngineEnabled,
2363 PD_ConfigSwitchIrDebug,
2364 PD_ConfigEnableMKLDNN,
2365 PD_ConfigSetMkldnnCacheCapacity,
2366 PD_ConfigMkldnnEnabled,
2367 PD_ConfigSetCpuMathLibraryNumThreads,
2368 PD_ConfigGetCpuMathLibraryNumThreads,
2369 PD_ConfigSetMkldnnOp,
2370 PD_ConfigEnableMkldnnQuantizer,
2371 PD_ConfigMkldnnQuantizerEnabled,
2372 PD_ConfigEnableMkldnnBfloat16,
2373 PD_ConfigMkldnnBfloat16Enabled,
2374 PD_ConfigSetBfloat16Op,
2375 PD_ConfigEnableGpuMultiStream,
2376 PD_ConfigThreadLocalStreamEnabled,
2377 PD_ConfigSetModelBuffer,
2378 PD_ConfigModelFromMemory,
2379 PD_ConfigEnableMemoryOptim,
2380 PD_ConfigMemoryOptimEnabled,
2381 PD_ConfigEnableProfile,
2382 PD_ConfigProfileEnabled,
2383 PD_ConfigDisableGlogInfo,
2384 PD_ConfigGlogInfoDisabled,
2385 PD_ConfigSetInvalid,
2386 PD_ConfigIsValid,
2387 PD_ConfigPartiallyRelease,
2388 PD_PredictorCreate,
2389 PD_PredictorClone,
2390 PD_PredictorGetInputNames,
2391 PD_PredictorGetOutputNames,
2392 PD_PredictorGetInputNum,
2393 PD_PredictorGetOutputNum,
2394 PD_PredictorGetInputHandle,
2395 PD_PredictorGetOutputHandle,
2396 PD_PredictorRun,
2397 PD_PredictorClearIntermediateTensor,
2398 PD_PredictorTryShrinkMemory,
2399 PD_PredictorDestroy,
2400 PD_TensorDestroy,
2401 PD_TensorReshape,
2402 PD_TensorMutableDataFloat,
2403 PD_TensorMutableDataInt64,
2404 PD_TensorMutableDataInt32,
2405 PD_TensorMutableDataUint8,
2406 PD_TensorMutableDataInt8,
2407 PD_TensorDataFloat,
2408 PD_TensorDataInt64,
2409 PD_TensorDataInt32,
2410 PD_TensorDataUint8,
2411 PD_TensorDataInt8,
2412 PD_TensorCopyFromCpuFloat,
2413 PD_TensorCopyFromCpuInt64,
2414 PD_TensorCopyFromCpuInt32,
2415 PD_TensorCopyFromCpuUint8,
2416 PD_TensorCopyFromCpuInt8,
2417 PD_TensorCopyToCpuFloat,
2418 PD_TensorCopyToCpuInt64,
2419 PD_TensorCopyToCpuInt32,
2420 PD_TensorCopyToCpuUint8,
2421 PD_TensorCopyToCpuInt8,
2422 PD_TensorGetShape,
2423 PD_TensorSetLod,
2424 PD_TensorGetLod,
2425 PD_TensorGetName,
2426 PD_TensorGetDataType,
2427 PD_OneDimArrayInt32Destroy,
2428 PD_OneDimArrayCstrDestroy,
2429 PD_OneDimArraySizeDestroy,
2430 PD_TwoDimArraySizeDestroy,
2431 })
2432 }
2433 pub unsafe fn remove(
2434 &self,
2435 __filename: *const ::std::os::raw::c_char,
2436 ) -> ::std::os::raw::c_int {
2437 (self.remove.as_ref().expect("Expected function, got error."))(__filename)
2438 }
2439 pub unsafe fn rename(
2440 &self,
2441 __old: *const ::std::os::raw::c_char,
2442 __new: *const ::std::os::raw::c_char,
2443 ) -> ::std::os::raw::c_int {
2444 (self.rename.as_ref().expect("Expected function, got error."))(__old, __new)
2445 }
2446 pub unsafe fn renameat(
2447 &self,
2448 __oldfd: ::std::os::raw::c_int,
2449 __old: *const ::std::os::raw::c_char,
2450 __newfd: ::std::os::raw::c_int,
2451 __new: *const ::std::os::raw::c_char,
2452 ) -> ::std::os::raw::c_int {
2453 (self
2454 .renameat
2455 .as_ref()
2456 .expect("Expected function, got error."))(__oldfd, __old, __newfd, __new)
2457 }
2458 pub unsafe fn tmpfile(&self) -> *mut FILE {
2459 (self
2460 .tmpfile
2461 .as_ref()
2462 .expect("Expected function, got error."))()
2463 }
2464 pub unsafe fn tmpnam(&self, __s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char {
2465 (self.tmpnam.as_ref().expect("Expected function, got error."))(__s)
2466 }
2467 pub unsafe fn tmpnam_r(&self, __s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char {
2468 (self
2469 .tmpnam_r
2470 .as_ref()
2471 .expect("Expected function, got error."))(__s)
2472 }
2473 pub unsafe fn tempnam(
2474 &self,
2475 __dir: *const ::std::os::raw::c_char,
2476 __pfx: *const ::std::os::raw::c_char,
2477 ) -> *mut ::std::os::raw::c_char {
2478 (self
2479 .tempnam
2480 .as_ref()
2481 .expect("Expected function, got error."))(__dir, __pfx)
2482 }
2483 pub unsafe fn fclose(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2484 (self.fclose.as_ref().expect("Expected function, got error."))(__stream)
2485 }
2486 pub unsafe fn fflush(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2487 (self.fflush.as_ref().expect("Expected function, got error."))(__stream)
2488 }
2489 pub unsafe fn fflush_unlocked(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2490 (self
2491 .fflush_unlocked
2492 .as_ref()
2493 .expect("Expected function, got error."))(__stream)
2494 }
2495 pub unsafe fn fopen(
2496 &self,
2497 __filename: *const ::std::os::raw::c_char,
2498 __modes: *const ::std::os::raw::c_char,
2499 ) -> *mut FILE {
2500 (self.fopen.as_ref().expect("Expected function, got error."))(__filename, __modes)
2501 }
2502 pub unsafe fn freopen(
2503 &self,
2504 __filename: *const ::std::os::raw::c_char,
2505 __modes: *const ::std::os::raw::c_char,
2506 __stream: *mut FILE,
2507 ) -> *mut FILE {
2508 (self
2509 .freopen
2510 .as_ref()
2511 .expect("Expected function, got error."))(__filename, __modes, __stream)
2512 }
2513 pub unsafe fn fdopen(
2514 &self,
2515 __fd: ::std::os::raw::c_int,
2516 __modes: *const ::std::os::raw::c_char,
2517 ) -> *mut FILE {
2518 (self.fdopen.as_ref().expect("Expected function, got error."))(__fd, __modes)
2519 }
2520 pub unsafe fn fmemopen(
2521 &self,
2522 __s: *mut ::std::os::raw::c_void,
2523 __len: size_t,
2524 __modes: *const ::std::os::raw::c_char,
2525 ) -> *mut FILE {
2526 (self
2527 .fmemopen
2528 .as_ref()
2529 .expect("Expected function, got error."))(__s, __len, __modes)
2530 }
2531 pub unsafe fn open_memstream(
2532 &self,
2533 __bufloc: *mut *mut ::std::os::raw::c_char,
2534 __sizeloc: *mut size_t,
2535 ) -> *mut FILE {
2536 (self
2537 .open_memstream
2538 .as_ref()
2539 .expect("Expected function, got error."))(__bufloc, __sizeloc)
2540 }
2541 pub unsafe fn setbuf(&self, __stream: *mut FILE, __buf: *mut ::std::os::raw::c_char) -> () {
2542 (self.setbuf.as_ref().expect("Expected function, got error."))(__stream, __buf)
2543 }
2544 pub unsafe fn setvbuf(
2545 &self,
2546 __stream: *mut FILE,
2547 __buf: *mut ::std::os::raw::c_char,
2548 __modes: ::std::os::raw::c_int,
2549 __n: size_t,
2550 ) -> ::std::os::raw::c_int {
2551 (self
2552 .setvbuf
2553 .as_ref()
2554 .expect("Expected function, got error."))(__stream, __buf, __modes, __n)
2555 }
2556 pub unsafe fn setbuffer(
2557 &self,
2558 __stream: *mut FILE,
2559 __buf: *mut ::std::os::raw::c_char,
2560 __size: size_t,
2561 ) -> () {
2562 (self
2563 .setbuffer
2564 .as_ref()
2565 .expect("Expected function, got error."))(__stream, __buf, __size)
2566 }
2567 pub unsafe fn setlinebuf(&self, __stream: *mut FILE) -> () {
2568 (self
2569 .setlinebuf
2570 .as_ref()
2571 .expect("Expected function, got error."))(__stream)
2572 }
2573 pub unsafe fn vfprintf(
2574 &self,
2575 __s: *mut FILE,
2576 __format: *const ::std::os::raw::c_char,
2577 __arg: *mut __va_list_tag,
2578 ) -> ::std::os::raw::c_int {
2579 (self
2580 .vfprintf
2581 .as_ref()
2582 .expect("Expected function, got error."))(__s, __format, __arg)
2583 }
2584 pub unsafe fn vprintf(
2585 &self,
2586 __format: *const ::std::os::raw::c_char,
2587 __arg: *mut __va_list_tag,
2588 ) -> ::std::os::raw::c_int {
2589 (self
2590 .vprintf
2591 .as_ref()
2592 .expect("Expected function, got error."))(__format, __arg)
2593 }
2594 pub unsafe fn vsprintf(
2595 &self,
2596 __s: *mut ::std::os::raw::c_char,
2597 __format: *const ::std::os::raw::c_char,
2598 __arg: *mut __va_list_tag,
2599 ) -> ::std::os::raw::c_int {
2600 (self
2601 .vsprintf
2602 .as_ref()
2603 .expect("Expected function, got error."))(__s, __format, __arg)
2604 }
2605 pub unsafe fn vsnprintf(
2606 &self,
2607 __s: *mut ::std::os::raw::c_char,
2608 __maxlen: ::std::os::raw::c_ulong,
2609 __format: *const ::std::os::raw::c_char,
2610 __arg: *mut __va_list_tag,
2611 ) -> ::std::os::raw::c_int {
2612 (self
2613 .vsnprintf
2614 .as_ref()
2615 .expect("Expected function, got error."))(__s, __maxlen, __format, __arg)
2616 }
2617 pub unsafe fn vdprintf(
2618 &self,
2619 __fd: ::std::os::raw::c_int,
2620 __fmt: *const ::std::os::raw::c_char,
2621 __arg: *mut __va_list_tag,
2622 ) -> ::std::os::raw::c_int {
2623 (self
2624 .vdprintf
2625 .as_ref()
2626 .expect("Expected function, got error."))(__fd, __fmt, __arg)
2627 }
2628 pub unsafe fn vfscanf(
2629 &self,
2630 __s: *mut FILE,
2631 __format: *const ::std::os::raw::c_char,
2632 __arg: *mut __va_list_tag,
2633 ) -> ::std::os::raw::c_int {
2634 (self
2635 .vfscanf
2636 .as_ref()
2637 .expect("Expected function, got error."))(__s, __format, __arg)
2638 }
2639 pub unsafe fn vscanf(
2640 &self,
2641 __format: *const ::std::os::raw::c_char,
2642 __arg: *mut __va_list_tag,
2643 ) -> ::std::os::raw::c_int {
2644 (self.vscanf.as_ref().expect("Expected function, got error."))(__format, __arg)
2645 }
2646 pub unsafe fn vsscanf(
2647 &self,
2648 __s: *const ::std::os::raw::c_char,
2649 __format: *const ::std::os::raw::c_char,
2650 __arg: *mut __va_list_tag,
2651 ) -> ::std::os::raw::c_int {
2652 (self
2653 .vsscanf
2654 .as_ref()
2655 .expect("Expected function, got error."))(__s, __format, __arg)
2656 }
2657 pub unsafe fn vfscanf1(
2658 &self,
2659 __s: *mut FILE,
2660 __format: *const ::std::os::raw::c_char,
2661 __arg: *mut __va_list_tag,
2662 ) -> ::std::os::raw::c_int {
2663 (self
2664 .vfscanf1
2665 .as_ref()
2666 .expect("Expected function, got error."))(__s, __format, __arg)
2667 }
2668 pub unsafe fn vscanf1(
2669 &self,
2670 __format: *const ::std::os::raw::c_char,
2671 __arg: *mut __va_list_tag,
2672 ) -> ::std::os::raw::c_int {
2673 (self
2674 .vscanf1
2675 .as_ref()
2676 .expect("Expected function, got error."))(__format, __arg)
2677 }
2678 pub unsafe fn vsscanf1(
2679 &self,
2680 __s: *const ::std::os::raw::c_char,
2681 __format: *const ::std::os::raw::c_char,
2682 __arg: *mut __va_list_tag,
2683 ) -> ::std::os::raw::c_int {
2684 (self
2685 .vsscanf1
2686 .as_ref()
2687 .expect("Expected function, got error."))(__s, __format, __arg)
2688 }
2689 pub unsafe fn fgetc(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2690 (self.fgetc.as_ref().expect("Expected function, got error."))(__stream)
2691 }
2692 pub unsafe fn getc(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2693 (self.getc.as_ref().expect("Expected function, got error."))(__stream)
2694 }
2695 pub unsafe fn getchar(&self) -> ::std::os::raw::c_int {
2696 (self
2697 .getchar
2698 .as_ref()
2699 .expect("Expected function, got error."))()
2700 }
2701 pub unsafe fn getc_unlocked(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2702 (self
2703 .getc_unlocked
2704 .as_ref()
2705 .expect("Expected function, got error."))(__stream)
2706 }
2707 pub unsafe fn getchar_unlocked(&self) -> ::std::os::raw::c_int {
2708 (self
2709 .getchar_unlocked
2710 .as_ref()
2711 .expect("Expected function, got error."))()
2712 }
2713 pub unsafe fn fgetc_unlocked(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2714 (self
2715 .fgetc_unlocked
2716 .as_ref()
2717 .expect("Expected function, got error."))(__stream)
2718 }
2719 pub unsafe fn fputc(
2720 &self,
2721 __c: ::std::os::raw::c_int,
2722 __stream: *mut FILE,
2723 ) -> ::std::os::raw::c_int {
2724 (self.fputc.as_ref().expect("Expected function, got error."))(__c, __stream)
2725 }
2726 pub unsafe fn putc(
2727 &self,
2728 __c: ::std::os::raw::c_int,
2729 __stream: *mut FILE,
2730 ) -> ::std::os::raw::c_int {
2731 (self.putc.as_ref().expect("Expected function, got error."))(__c, __stream)
2732 }
2733 pub unsafe fn putchar(&self, __c: ::std::os::raw::c_int) -> ::std::os::raw::c_int {
2734 (self
2735 .putchar
2736 .as_ref()
2737 .expect("Expected function, got error."))(__c)
2738 }
2739 pub unsafe fn fputc_unlocked(
2740 &self,
2741 __c: ::std::os::raw::c_int,
2742 __stream: *mut FILE,
2743 ) -> ::std::os::raw::c_int {
2744 (self
2745 .fputc_unlocked
2746 .as_ref()
2747 .expect("Expected function, got error."))(__c, __stream)
2748 }
2749 pub unsafe fn putc_unlocked(
2750 &self,
2751 __c: ::std::os::raw::c_int,
2752 __stream: *mut FILE,
2753 ) -> ::std::os::raw::c_int {
2754 (self
2755 .putc_unlocked
2756 .as_ref()
2757 .expect("Expected function, got error."))(__c, __stream)
2758 }
2759 pub unsafe fn putchar_unlocked(&self, __c: ::std::os::raw::c_int) -> ::std::os::raw::c_int {
2760 (self
2761 .putchar_unlocked
2762 .as_ref()
2763 .expect("Expected function, got error."))(__c)
2764 }
2765 pub unsafe fn getw(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2766 (self.getw.as_ref().expect("Expected function, got error."))(__stream)
2767 }
2768 pub unsafe fn putw(
2769 &self,
2770 __w: ::std::os::raw::c_int,
2771 __stream: *mut FILE,
2772 ) -> ::std::os::raw::c_int {
2773 (self.putw.as_ref().expect("Expected function, got error."))(__w, __stream)
2774 }
2775 pub unsafe fn fgets(
2776 &self,
2777 __s: *mut ::std::os::raw::c_char,
2778 __n: ::std::os::raw::c_int,
2779 __stream: *mut FILE,
2780 ) -> *mut ::std::os::raw::c_char {
2781 (self.fgets.as_ref().expect("Expected function, got error."))(__s, __n, __stream)
2782 }
2783 pub unsafe fn __getdelim(
2784 &self,
2785 __lineptr: *mut *mut ::std::os::raw::c_char,
2786 __n: *mut size_t,
2787 __delimiter: ::std::os::raw::c_int,
2788 __stream: *mut FILE,
2789 ) -> __ssize_t {
2790 (self
2791 .__getdelim
2792 .as_ref()
2793 .expect("Expected function, got error."))(__lineptr, __n, __delimiter, __stream)
2794 }
2795 pub unsafe fn getdelim(
2796 &self,
2797 __lineptr: *mut *mut ::std::os::raw::c_char,
2798 __n: *mut size_t,
2799 __delimiter: ::std::os::raw::c_int,
2800 __stream: *mut FILE,
2801 ) -> __ssize_t {
2802 (self
2803 .getdelim
2804 .as_ref()
2805 .expect("Expected function, got error."))(__lineptr, __n, __delimiter, __stream)
2806 }
2807 pub unsafe fn getline(
2808 &self,
2809 __lineptr: *mut *mut ::std::os::raw::c_char,
2810 __n: *mut size_t,
2811 __stream: *mut FILE,
2812 ) -> __ssize_t {
2813 (self
2814 .getline
2815 .as_ref()
2816 .expect("Expected function, got error."))(__lineptr, __n, __stream)
2817 }
2818 pub unsafe fn fputs(
2819 &self,
2820 __s: *const ::std::os::raw::c_char,
2821 __stream: *mut FILE,
2822 ) -> ::std::os::raw::c_int {
2823 (self.fputs.as_ref().expect("Expected function, got error."))(__s, __stream)
2824 }
2825 pub unsafe fn puts(&self, __s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int {
2826 (self.puts.as_ref().expect("Expected function, got error."))(__s)
2827 }
2828 pub unsafe fn ungetc(
2829 &self,
2830 __c: ::std::os::raw::c_int,
2831 __stream: *mut FILE,
2832 ) -> ::std::os::raw::c_int {
2833 (self.ungetc.as_ref().expect("Expected function, got error."))(__c, __stream)
2834 }
2835 pub unsafe fn fread(
2836 &self,
2837 __ptr: *mut ::std::os::raw::c_void,
2838 __size: ::std::os::raw::c_ulong,
2839 __n: ::std::os::raw::c_ulong,
2840 __stream: *mut FILE,
2841 ) -> ::std::os::raw::c_ulong {
2842 (self.fread.as_ref().expect("Expected function, got error."))(__ptr, __size, __n, __stream)
2843 }
2844 pub unsafe fn fwrite(
2845 &self,
2846 __ptr: *const ::std::os::raw::c_void,
2847 __size: ::std::os::raw::c_ulong,
2848 __n: ::std::os::raw::c_ulong,
2849 __s: *mut FILE,
2850 ) -> ::std::os::raw::c_ulong {
2851 (self.fwrite.as_ref().expect("Expected function, got error."))(__ptr, __size, __n, __s)
2852 }
2853 pub unsafe fn fread_unlocked(
2854 &self,
2855 __ptr: *mut ::std::os::raw::c_void,
2856 __size: size_t,
2857 __n: size_t,
2858 __stream: *mut FILE,
2859 ) -> size_t {
2860 (self
2861 .fread_unlocked
2862 .as_ref()
2863 .expect("Expected function, got error."))(__ptr, __size, __n, __stream)
2864 }
2865 pub unsafe fn fwrite_unlocked(
2866 &self,
2867 __ptr: *const ::std::os::raw::c_void,
2868 __size: size_t,
2869 __n: size_t,
2870 __stream: *mut FILE,
2871 ) -> size_t {
2872 (self
2873 .fwrite_unlocked
2874 .as_ref()
2875 .expect("Expected function, got error."))(__ptr, __size, __n, __stream)
2876 }
2877 pub unsafe fn fseek(
2878 &self,
2879 __stream: *mut FILE,
2880 __off: ::std::os::raw::c_long,
2881 __whence: ::std::os::raw::c_int,
2882 ) -> ::std::os::raw::c_int {
2883 (self.fseek.as_ref().expect("Expected function, got error."))(__stream, __off, __whence)
2884 }
2885 pub unsafe fn ftell(&self, __stream: *mut FILE) -> ::std::os::raw::c_long {
2886 (self.ftell.as_ref().expect("Expected function, got error."))(__stream)
2887 }
2888 pub unsafe fn rewind(&self, __stream: *mut FILE) -> () {
2889 (self.rewind.as_ref().expect("Expected function, got error."))(__stream)
2890 }
2891 pub unsafe fn fseeko(
2892 &self,
2893 __stream: *mut FILE,
2894 __off: __off_t,
2895 __whence: ::std::os::raw::c_int,
2896 ) -> ::std::os::raw::c_int {
2897 (self.fseeko.as_ref().expect("Expected function, got error."))(__stream, __off, __whence)
2898 }
2899 pub unsafe fn ftello(&self, __stream: *mut FILE) -> __off_t {
2900 (self.ftello.as_ref().expect("Expected function, got error."))(__stream)
2901 }
2902 pub unsafe fn fgetpos(&self, __stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int {
2903 (self
2904 .fgetpos
2905 .as_ref()
2906 .expect("Expected function, got error."))(__stream, __pos)
2907 }
2908 pub unsafe fn fsetpos(
2909 &self,
2910 __stream: *mut FILE,
2911 __pos: *const fpos_t,
2912 ) -> ::std::os::raw::c_int {
2913 (self
2914 .fsetpos
2915 .as_ref()
2916 .expect("Expected function, got error."))(__stream, __pos)
2917 }
2918 pub unsafe fn clearerr(&self, __stream: *mut FILE) -> () {
2919 (self
2920 .clearerr
2921 .as_ref()
2922 .expect("Expected function, got error."))(__stream)
2923 }
2924 pub unsafe fn feof(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2925 (self.feof.as_ref().expect("Expected function, got error."))(__stream)
2926 }
2927 pub unsafe fn ferror(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2928 (self.ferror.as_ref().expect("Expected function, got error."))(__stream)
2929 }
2930 pub unsafe fn clearerr_unlocked(&self, __stream: *mut FILE) -> () {
2931 (self
2932 .clearerr_unlocked
2933 .as_ref()
2934 .expect("Expected function, got error."))(__stream)
2935 }
2936 pub unsafe fn feof_unlocked(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2937 (self
2938 .feof_unlocked
2939 .as_ref()
2940 .expect("Expected function, got error."))(__stream)
2941 }
2942 pub unsafe fn ferror_unlocked(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2943 (self
2944 .ferror_unlocked
2945 .as_ref()
2946 .expect("Expected function, got error."))(__stream)
2947 }
2948 pub unsafe fn perror(&self, __s: *const ::std::os::raw::c_char) -> () {
2949 (self.perror.as_ref().expect("Expected function, got error."))(__s)
2950 }
2951 pub unsafe fn fileno(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2952 (self.fileno.as_ref().expect("Expected function, got error."))(__stream)
2953 }
2954 pub unsafe fn fileno_unlocked(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2955 (self
2956 .fileno_unlocked
2957 .as_ref()
2958 .expect("Expected function, got error."))(__stream)
2959 }
2960 pub unsafe fn popen(
2961 &self,
2962 __command: *const ::std::os::raw::c_char,
2963 __modes: *const ::std::os::raw::c_char,
2964 ) -> *mut FILE {
2965 (self.popen.as_ref().expect("Expected function, got error."))(__command, __modes)
2966 }
2967 pub unsafe fn pclose(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2968 (self.pclose.as_ref().expect("Expected function, got error."))(__stream)
2969 }
2970 pub unsafe fn ctermid(&self, __s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char {
2971 (self
2972 .ctermid
2973 .as_ref()
2974 .expect("Expected function, got error."))(__s)
2975 }
2976 pub unsafe fn flockfile(&self, __stream: *mut FILE) -> () {
2977 (self
2978 .flockfile
2979 .as_ref()
2980 .expect("Expected function, got error."))(__stream)
2981 }
2982 pub unsafe fn ftrylockfile(&self, __stream: *mut FILE) -> ::std::os::raw::c_int {
2983 (self
2984 .ftrylockfile
2985 .as_ref()
2986 .expect("Expected function, got error."))(__stream)
2987 }
2988 pub unsafe fn funlockfile(&self, __stream: *mut FILE) -> () {
2989 (self
2990 .funlockfile
2991 .as_ref()
2992 .expect("Expected function, got error."))(__stream)
2993 }
2994 pub unsafe fn __uflow(&self, arg1: *mut FILE) -> ::std::os::raw::c_int {
2995 (self
2996 .__uflow
2997 .as_ref()
2998 .expect("Expected function, got error."))(arg1)
2999 }
3000 pub unsafe fn __overflow(
3001 &self,
3002 arg1: *mut FILE,
3003 arg2: ::std::os::raw::c_int,
3004 ) -> ::std::os::raw::c_int {
3005 (self
3006 .__overflow
3007 .as_ref()
3008 .expect("Expected function, got error."))(arg1, arg2)
3009 }
3010 pub unsafe fn PD_ConfigCreate(&self) -> *mut PD_Config {
3011 (self
3012 .PD_ConfigCreate
3013 .as_ref()
3014 .expect("Expected function, got error."))()
3015 }
3016 pub unsafe fn PD_ConfigDestroy(&self, pd_config: *mut PD_Config) -> () {
3017 (self
3018 .PD_ConfigDestroy
3019 .as_ref()
3020 .expect("Expected function, got error."))(pd_config)
3021 }
3022 pub unsafe fn PD_ConfigSetModel(
3023 &self,
3024 pd_config: *mut PD_Config,
3025 prog_file_path: *const ::std::os::raw::c_char,
3026 params_file_path: *const ::std::os::raw::c_char,
3027 ) -> () {
3028 (self
3029 .PD_ConfigSetModel
3030 .as_ref()
3031 .expect("Expected function, got error."))(
3032 pd_config, prog_file_path, params_file_path
3033 )
3034 }
3035 pub unsafe fn PD_ConfigSetProgFile(
3036 &self,
3037 pd_config: *mut PD_Config,
3038 prog_file_path: *const ::std::os::raw::c_char,
3039 ) -> () {
3040 (self
3041 .PD_ConfigSetProgFile
3042 .as_ref()
3043 .expect("Expected function, got error."))(pd_config, prog_file_path)
3044 }
3045 pub unsafe fn PD_ConfigSetParamsFile(
3046 &self,
3047 pd_config: *mut PD_Config,
3048 params_file_path: *const ::std::os::raw::c_char,
3049 ) -> () {
3050 (self
3051 .PD_ConfigSetParamsFile
3052 .as_ref()
3053 .expect("Expected function, got error."))(pd_config, params_file_path)
3054 }
3055 pub unsafe fn PD_ConfigSetOptimCacheDir(
3056 &self,
3057 pd_config: *mut PD_Config,
3058 opt_cache_dir: *const ::std::os::raw::c_char,
3059 ) -> () {
3060 (self
3061 .PD_ConfigSetOptimCacheDir
3062 .as_ref()
3063 .expect("Expected function, got error."))(pd_config, opt_cache_dir)
3064 }
3065 pub unsafe fn PD_ConfigSetModelDir(
3066 &self,
3067 pd_config: *mut PD_Config,
3068 model_dir: *const ::std::os::raw::c_char,
3069 ) -> () {
3070 (self
3071 .PD_ConfigSetModelDir
3072 .as_ref()
3073 .expect("Expected function, got error."))(pd_config, model_dir)
3074 }
3075 pub unsafe fn PD_ConfigGetModelDir(
3076 &self,
3077 pd_config: *mut PD_Config,
3078 ) -> *const ::std::os::raw::c_char {
3079 (self
3080 .PD_ConfigGetModelDir
3081 .as_ref()
3082 .expect("Expected function, got error."))(pd_config)
3083 }
3084 pub unsafe fn PD_ConfigGetProgFile(
3085 &self,
3086 pd_config: *mut PD_Config,
3087 ) -> *const ::std::os::raw::c_char {
3088 (self
3089 .PD_ConfigGetProgFile
3090 .as_ref()
3091 .expect("Expected function, got error."))(pd_config)
3092 }
3093 pub unsafe fn PD_ConfigGetParamsFile(
3094 &self,
3095 pd_config: *mut PD_Config,
3096 ) -> *const ::std::os::raw::c_char {
3097 (self
3098 .PD_ConfigGetParamsFile
3099 .as_ref()
3100 .expect("Expected function, got error."))(pd_config)
3101 }
3102 pub unsafe fn PD_ConfigDisableFCPadding(&self, pd_config: *mut PD_Config) -> () {
3103 (self
3104 .PD_ConfigDisableFCPadding
3105 .as_ref()
3106 .expect("Expected function, got error."))(pd_config)
3107 }
3108 pub unsafe fn PD_ConfigUseFcPadding(&self, pd_config: *mut PD_Config) -> PD_Bool {
3109 (self
3110 .PD_ConfigUseFcPadding
3111 .as_ref()
3112 .expect("Expected function, got error."))(pd_config)
3113 }
3114 pub unsafe fn PD_ConfigEnableUseGpu(
3115 &self,
3116 pd_config: *mut PD_Config,
3117 memory_pool_init_size_mb: u64,
3118 device_id: i32,
3119 ) -> () {
3120 (self
3121 .PD_ConfigEnableUseGpu
3122 .as_ref()
3123 .expect("Expected function, got error."))(
3124 pd_config,
3125 memory_pool_init_size_mb,
3126 device_id,
3127 )
3128 }
3129 pub unsafe fn PD_ConfigDisableGpu(&self, pd_config: *mut PD_Config) -> () {
3130 (self
3131 .PD_ConfigDisableGpu
3132 .as_ref()
3133 .expect("Expected function, got error."))(pd_config)
3134 }
3135 pub unsafe fn PD_ConfigUseGpu(&self, pd_config: *mut PD_Config) -> PD_Bool {
3136 (self
3137 .PD_ConfigUseGpu
3138 .as_ref()
3139 .expect("Expected function, got error."))(pd_config)
3140 }
3141 pub unsafe fn PD_ConfigEnableXpu(
3142 &self,
3143 pd_config: *mut PD_Config,
3144 l3_workspace_size: i32,
3145 ) -> () {
3146 (self
3147 .PD_ConfigEnableXpu
3148 .as_ref()
3149 .expect("Expected function, got error."))(pd_config, l3_workspace_size)
3150 }
3151 pub unsafe fn PD_ConfigUseXpu(&self, pd_config: *mut PD_Config) -> PD_Bool {
3152 (self
3153 .PD_ConfigUseXpu
3154 .as_ref()
3155 .expect("Expected function, got error."))(pd_config)
3156 }
3157 pub unsafe fn PD_ConfigGpuDeviceId(&self, pd_config: *mut PD_Config) -> i32 {
3158 (self
3159 .PD_ConfigGpuDeviceId
3160 .as_ref()
3161 .expect("Expected function, got error."))(pd_config)
3162 }
3163 pub unsafe fn PD_ConfigXpuDeviceId(&self, pd_config: *mut PD_Config) -> i32 {
3164 (self
3165 .PD_ConfigXpuDeviceId
3166 .as_ref()
3167 .expect("Expected function, got error."))(pd_config)
3168 }
3169 pub unsafe fn PD_ConfigMemoryPoolInitSizeMb(&self, pd_config: *mut PD_Config) -> i32 {
3170 (self
3171 .PD_ConfigMemoryPoolInitSizeMb
3172 .as_ref()
3173 .expect("Expected function, got error."))(pd_config)
3174 }
3175 pub unsafe fn PD_ConfigFractionOfGpuMemoryForPool(&self, pd_config: *mut PD_Config) -> f32 {
3176 (self
3177 .PD_ConfigFractionOfGpuMemoryForPool
3178 .as_ref()
3179 .expect("Expected function, got error."))(pd_config)
3180 }
3181 pub unsafe fn PD_ConfigEnableCudnn(&self, pd_config: *mut PD_Config) -> () {
3182 (self
3183 .PD_ConfigEnableCudnn
3184 .as_ref()
3185 .expect("Expected function, got error."))(pd_config)
3186 }
3187 pub unsafe fn PD_ConfigCudnnEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3188 (self
3189 .PD_ConfigCudnnEnabled
3190 .as_ref()
3191 .expect("Expected function, got error."))(pd_config)
3192 }
3193 pub unsafe fn PD_ConfigSwitchIrOptim(&self, pd_config: *mut PD_Config, x: PD_Bool) -> () {
3194 (self
3195 .PD_ConfigSwitchIrOptim
3196 .as_ref()
3197 .expect("Expected function, got error."))(pd_config, x)
3198 }
3199 pub unsafe fn PD_ConfigIrOptim(&self, pd_config: *mut PD_Config) -> PD_Bool {
3200 (self
3201 .PD_ConfigIrOptim
3202 .as_ref()
3203 .expect("Expected function, got error."))(pd_config)
3204 }
3205 pub unsafe fn PD_ConfigEnableTensorRtEngine(
3206 &self,
3207 pd_config: *mut PD_Config,
3208 workspace_size: i32,
3209 max_batch_size: i32,
3210 min_subgraph_size: i32,
3211 precision: PD_PrecisionType,
3212 use_static: PD_Bool,
3213 use_calib_mode: PD_Bool,
3214 ) -> () {
3215 (self
3216 .PD_ConfigEnableTensorRtEngine
3217 .as_ref()
3218 .expect("Expected function, got error."))(
3219 pd_config,
3220 workspace_size,
3221 max_batch_size,
3222 min_subgraph_size,
3223 precision,
3224 use_static,
3225 use_calib_mode,
3226 )
3227 }
3228 pub unsafe fn PD_ConfigTensorRtEngineEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3229 (self
3230 .PD_ConfigTensorRtEngineEnabled
3231 .as_ref()
3232 .expect("Expected function, got error."))(pd_config)
3233 }
3234 pub unsafe fn PD_ConfigSetTrtDynamicShapeInfo(
3235 &self,
3236 pd_config: *mut PD_Config,
3237 tensor_num: size_t,
3238 tensor_name: *mut *const ::std::os::raw::c_char,
3239 shapes_num: *mut size_t,
3240 min_shape: *mut *mut i32,
3241 max_shape: *mut *mut i32,
3242 optim_shape: *mut *mut i32,
3243 disable_trt_plugin_fp16: PD_Bool,
3244 ) -> () {
3245 (self
3246 .PD_ConfigSetTrtDynamicShapeInfo
3247 .as_ref()
3248 .expect("Expected function, got error."))(
3249 pd_config,
3250 tensor_num,
3251 tensor_name,
3252 shapes_num,
3253 min_shape,
3254 max_shape,
3255 optim_shape,
3256 disable_trt_plugin_fp16,
3257 )
3258 }
3259 pub unsafe fn PD_ConfigDisableTensorRtOPs(
3260 &self,
3261 pd_config: *mut PD_Config,
3262 ops_num: size_t,
3263 ops_name: *mut *const ::std::os::raw::c_char,
3264 ) -> () {
3265 (self
3266 .PD_ConfigDisableTensorRtOPs
3267 .as_ref()
3268 .expect("Expected function, got error."))(pd_config, ops_num, ops_name)
3269 }
3270 pub unsafe fn PD_ConfigEnableTensorRtOSS(&self, pd_config: *mut PD_Config) -> () {
3271 (self
3272 .PD_ConfigEnableTensorRtOSS
3273 .as_ref()
3274 .expect("Expected function, got error."))(pd_config)
3275 }
3276 pub unsafe fn PD_ConfigTensorRtOssEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3277 (self
3278 .PD_ConfigTensorRtOssEnabled
3279 .as_ref()
3280 .expect("Expected function, got error."))(pd_config)
3281 }
3282 pub unsafe fn PD_ConfigEnableTensorRtDla(
3283 &self,
3284 pd_config: *mut PD_Config,
3285 dla_core: i32,
3286 ) -> () {
3287 (self
3288 .PD_ConfigEnableTensorRtDla
3289 .as_ref()
3290 .expect("Expected function, got error."))(pd_config, dla_core)
3291 }
3292 pub unsafe fn PD_ConfigTensorRtDlaEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3293 (self
3294 .PD_ConfigTensorRtDlaEnabled
3295 .as_ref()
3296 .expect("Expected function, got error."))(pd_config)
3297 }
3298 pub unsafe fn PD_ConfigEnableLiteEngine(
3299 &self,
3300 pd_config: *mut PD_Config,
3301 precision: PD_PrecisionType,
3302 zero_copy: PD_Bool,
3303 passes_filter_num: size_t,
3304 passes_filter: *mut *const ::std::os::raw::c_char,
3305 ops_filter_num: size_t,
3306 ops_filter: *mut *const ::std::os::raw::c_char,
3307 ) -> () {
3308 (self
3309 .PD_ConfigEnableLiteEngine
3310 .as_ref()
3311 .expect("Expected function, got error."))(
3312 pd_config,
3313 precision,
3314 zero_copy,
3315 passes_filter_num,
3316 passes_filter,
3317 ops_filter_num,
3318 ops_filter,
3319 )
3320 }
3321 pub unsafe fn PD_ConfigLiteEngineEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3322 (self
3323 .PD_ConfigLiteEngineEnabled
3324 .as_ref()
3325 .expect("Expected function, got error."))(pd_config)
3326 }
3327 pub unsafe fn PD_ConfigSwitchIrDebug(&self, pd_config: *mut PD_Config, x: PD_Bool) -> () {
3328 (self
3329 .PD_ConfigSwitchIrDebug
3330 .as_ref()
3331 .expect("Expected function, got error."))(pd_config, x)
3332 }
3333 pub unsafe fn PD_ConfigEnableMKLDNN(&self, pd_config: *mut PD_Config) -> () {
3334 (self
3335 .PD_ConfigEnableMKLDNN
3336 .as_ref()
3337 .expect("Expected function, got error."))(pd_config)
3338 }
3339 pub unsafe fn PD_ConfigSetMkldnnCacheCapacity(
3340 &self,
3341 pd_config: *mut PD_Config,
3342 capacity: i32,
3343 ) -> () {
3344 (self
3345 .PD_ConfigSetMkldnnCacheCapacity
3346 .as_ref()
3347 .expect("Expected function, got error."))(pd_config, capacity)
3348 }
3349 pub unsafe fn PD_ConfigMkldnnEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3350 (self
3351 .PD_ConfigMkldnnEnabled
3352 .as_ref()
3353 .expect("Expected function, got error."))(pd_config)
3354 }
3355 pub unsafe fn PD_ConfigSetCpuMathLibraryNumThreads(
3356 &self,
3357 pd_config: *mut PD_Config,
3358 cpu_math_library_num_threads: i32,
3359 ) -> () {
3360 (self
3361 .PD_ConfigSetCpuMathLibraryNumThreads
3362 .as_ref()
3363 .expect("Expected function, got error."))(
3364 pd_config, cpu_math_library_num_threads
3365 )
3366 }
3367 pub unsafe fn PD_ConfigGetCpuMathLibraryNumThreads(&self, pd_config: *mut PD_Config) -> i32 {
3368 (self
3369 .PD_ConfigGetCpuMathLibraryNumThreads
3370 .as_ref()
3371 .expect("Expected function, got error."))(pd_config)
3372 }
3373 pub unsafe fn PD_ConfigSetMkldnnOp(
3374 &self,
3375 pd_config: *mut PD_Config,
3376 ops_num: size_t,
3377 op_list: *mut *const ::std::os::raw::c_char,
3378 ) -> () {
3379 (self
3380 .PD_ConfigSetMkldnnOp
3381 .as_ref()
3382 .expect("Expected function, got error."))(pd_config, ops_num, op_list)
3383 }
3384 pub unsafe fn PD_ConfigEnableMkldnnQuantizer(&self, pd_config: *mut PD_Config) -> () {
3385 (self
3386 .PD_ConfigEnableMkldnnQuantizer
3387 .as_ref()
3388 .expect("Expected function, got error."))(pd_config)
3389 }
3390 pub unsafe fn PD_ConfigMkldnnQuantizerEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3391 (self
3392 .PD_ConfigMkldnnQuantizerEnabled
3393 .as_ref()
3394 .expect("Expected function, got error."))(pd_config)
3395 }
3396 pub unsafe fn PD_ConfigEnableMkldnnBfloat16(&self, pd_config: *mut PD_Config) -> () {
3397 (self
3398 .PD_ConfigEnableMkldnnBfloat16
3399 .as_ref()
3400 .expect("Expected function, got error."))(pd_config)
3401 }
3402 pub unsafe fn PD_ConfigMkldnnBfloat16Enabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3403 (self
3404 .PD_ConfigMkldnnBfloat16Enabled
3405 .as_ref()
3406 .expect("Expected function, got error."))(pd_config)
3407 }
3408 pub unsafe fn PD_ConfigSetBfloat16Op(
3409 &self,
3410 pd_config: *mut PD_Config,
3411 ops_num: size_t,
3412 op_list: *mut *const ::std::os::raw::c_char,
3413 ) -> () {
3414 (self
3415 .PD_ConfigSetBfloat16Op
3416 .as_ref()
3417 .expect("Expected function, got error."))(pd_config, ops_num, op_list)
3418 }
3419 pub unsafe fn PD_ConfigEnableGpuMultiStream(&self, pd_config: *mut PD_Config) -> () {
3420 (self
3421 .PD_ConfigEnableGpuMultiStream
3422 .as_ref()
3423 .expect("Expected function, got error."))(pd_config)
3424 }
3425 pub unsafe fn PD_ConfigThreadLocalStreamEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3426 (self
3427 .PD_ConfigThreadLocalStreamEnabled
3428 .as_ref()
3429 .expect("Expected function, got error."))(pd_config)
3430 }
3431 pub unsafe fn PD_ConfigSetModelBuffer(
3432 &self,
3433 pd_config: *mut PD_Config,
3434 prog_buffer: *const ::std::os::raw::c_char,
3435 prog_buffer_size: size_t,
3436 params_buffer: *const ::std::os::raw::c_char,
3437 params_buffer_size: size_t,
3438 ) -> () {
3439 (self
3440 .PD_ConfigSetModelBuffer
3441 .as_ref()
3442 .expect("Expected function, got error."))(
3443 pd_config,
3444 prog_buffer,
3445 prog_buffer_size,
3446 params_buffer,
3447 params_buffer_size,
3448 )
3449 }
3450 pub unsafe fn PD_ConfigModelFromMemory(&self, pd_config: *mut PD_Config) -> PD_Bool {
3451 (self
3452 .PD_ConfigModelFromMemory
3453 .as_ref()
3454 .expect("Expected function, got error."))(pd_config)
3455 }
3456 pub unsafe fn PD_ConfigEnableMemoryOptim(&self, pd_config: *mut PD_Config) -> () {
3457 (self
3458 .PD_ConfigEnableMemoryOptim
3459 .as_ref()
3460 .expect("Expected function, got error."))(pd_config)
3461 }
3462 pub unsafe fn PD_ConfigMemoryOptimEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3463 (self
3464 .PD_ConfigMemoryOptimEnabled
3465 .as_ref()
3466 .expect("Expected function, got error."))(pd_config)
3467 }
3468 pub unsafe fn PD_ConfigEnableProfile(&self, pd_config: *mut PD_Config) -> () {
3469 (self
3470 .PD_ConfigEnableProfile
3471 .as_ref()
3472 .expect("Expected function, got error."))(pd_config)
3473 }
3474 pub unsafe fn PD_ConfigProfileEnabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3475 (self
3476 .PD_ConfigProfileEnabled
3477 .as_ref()
3478 .expect("Expected function, got error."))(pd_config)
3479 }
3480 pub unsafe fn PD_ConfigDisableGlogInfo(&self, pd_config: *mut PD_Config) -> () {
3481 (self
3482 .PD_ConfigDisableGlogInfo
3483 .as_ref()
3484 .expect("Expected function, got error."))(pd_config)
3485 }
3486 pub unsafe fn PD_ConfigGlogInfoDisabled(&self, pd_config: *mut PD_Config) -> PD_Bool {
3487 (self
3488 .PD_ConfigGlogInfoDisabled
3489 .as_ref()
3490 .expect("Expected function, got error."))(pd_config)
3491 }
3492 pub unsafe fn PD_ConfigSetInvalid(&self, pd_config: *mut PD_Config) -> () {
3493 (self
3494 .PD_ConfigSetInvalid
3495 .as_ref()
3496 .expect("Expected function, got error."))(pd_config)
3497 }
3498 pub unsafe fn PD_ConfigIsValid(&self, pd_config: *mut PD_Config) -> PD_Bool {
3499 (self
3500 .PD_ConfigIsValid
3501 .as_ref()
3502 .expect("Expected function, got error."))(pd_config)
3503 }
3504 pub unsafe fn PD_ConfigPartiallyRelease(&self, pd_config: *mut PD_Config) -> () {
3505 (self
3506 .PD_ConfigPartiallyRelease
3507 .as_ref()
3508 .expect("Expected function, got error."))(pd_config)
3509 }
3510 pub unsafe fn PD_PredictorCreate(&self, pd_config: *mut PD_Config) -> *mut PD_Predictor {
3511 (self
3512 .PD_PredictorCreate
3513 .as_ref()
3514 .expect("Expected function, got error."))(pd_config)
3515 }
3516 pub unsafe fn PD_PredictorClone(&self, pd_predictor: *mut PD_Predictor) -> *mut PD_Predictor {
3517 (self
3518 .PD_PredictorClone
3519 .as_ref()
3520 .expect("Expected function, got error."))(pd_predictor)
3521 }
3522 pub unsafe fn PD_PredictorGetInputNames(
3523 &self,
3524 pd_predictor: *mut PD_Predictor,
3525 ) -> *mut PD_OneDimArrayCstr {
3526 (self
3527 .PD_PredictorGetInputNames
3528 .as_ref()
3529 .expect("Expected function, got error."))(pd_predictor)
3530 }
3531 pub unsafe fn PD_PredictorGetOutputNames(
3532 &self,
3533 pd_predictor: *mut PD_Predictor,
3534 ) -> *mut PD_OneDimArrayCstr {
3535 (self
3536 .PD_PredictorGetOutputNames
3537 .as_ref()
3538 .expect("Expected function, got error."))(pd_predictor)
3539 }
3540 pub unsafe fn PD_PredictorGetInputNum(&self, pd_predictor: *mut PD_Predictor) -> size_t {
3541 (self
3542 .PD_PredictorGetInputNum
3543 .as_ref()
3544 .expect("Expected function, got error."))(pd_predictor)
3545 }
3546 pub unsafe fn PD_PredictorGetOutputNum(&self, pd_predictor: *mut PD_Predictor) -> size_t {
3547 (self
3548 .PD_PredictorGetOutputNum
3549 .as_ref()
3550 .expect("Expected function, got error."))(pd_predictor)
3551 }
3552 pub unsafe fn PD_PredictorGetInputHandle(
3553 &self,
3554 pd_predictor: *mut PD_Predictor,
3555 name: *const ::std::os::raw::c_char,
3556 ) -> *mut PD_Tensor {
3557 (self
3558 .PD_PredictorGetInputHandle
3559 .as_ref()
3560 .expect("Expected function, got error."))(pd_predictor, name)
3561 }
3562 pub unsafe fn PD_PredictorGetOutputHandle(
3563 &self,
3564 pd_predictor: *mut PD_Predictor,
3565 name: *const ::std::os::raw::c_char,
3566 ) -> *mut PD_Tensor {
3567 (self
3568 .PD_PredictorGetOutputHandle
3569 .as_ref()
3570 .expect("Expected function, got error."))(pd_predictor, name)
3571 }
3572 pub unsafe fn PD_PredictorRun(&self, pd_predictor: *mut PD_Predictor) -> PD_Bool {
3573 (self
3574 .PD_PredictorRun
3575 .as_ref()
3576 .expect("Expected function, got error."))(pd_predictor)
3577 }
3578 pub unsafe fn PD_PredictorClearIntermediateTensor(
3579 &self,
3580 pd_predictor: *mut PD_Predictor,
3581 ) -> () {
3582 (self
3583 .PD_PredictorClearIntermediateTensor
3584 .as_ref()
3585 .expect("Expected function, got error."))(pd_predictor)
3586 }
3587 pub unsafe fn PD_PredictorTryShrinkMemory(&self, pd_predictor: *mut PD_Predictor) -> u64 {
3588 (self
3589 .PD_PredictorTryShrinkMemory
3590 .as_ref()
3591 .expect("Expected function, got error."))(pd_predictor)
3592 }
3593 pub unsafe fn PD_PredictorDestroy(&self, pd_predictor: *mut PD_Predictor) -> () {
3594 (self
3595 .PD_PredictorDestroy
3596 .as_ref()
3597 .expect("Expected function, got error."))(pd_predictor)
3598 }
3599 pub unsafe fn PD_TensorDestroy(&self, pd_tensor: *mut PD_Tensor) -> () {
3600 (self
3601 .PD_TensorDestroy
3602 .as_ref()
3603 .expect("Expected function, got error."))(pd_tensor)
3604 }
3605 pub unsafe fn PD_TensorReshape(
3606 &self,
3607 pd_tensor: *mut PD_Tensor,
3608 shape_size: size_t,
3609 shape: *mut i32,
3610 ) -> () {
3611 (self
3612 .PD_TensorReshape
3613 .as_ref()
3614 .expect("Expected function, got error."))(pd_tensor, shape_size, shape)
3615 }
3616 pub unsafe fn PD_TensorMutableDataFloat(
3617 &self,
3618 pd_tensor: *mut PD_Tensor,
3619 place: PD_PlaceType,
3620 ) -> *mut f32 {
3621 (self
3622 .PD_TensorMutableDataFloat
3623 .as_ref()
3624 .expect("Expected function, got error."))(pd_tensor, place)
3625 }
3626 pub unsafe fn PD_TensorMutableDataInt64(
3627 &self,
3628 pd_tensor: *mut PD_Tensor,
3629 place: PD_PlaceType,
3630 ) -> *mut i64 {
3631 (self
3632 .PD_TensorMutableDataInt64
3633 .as_ref()
3634 .expect("Expected function, got error."))(pd_tensor, place)
3635 }
3636 pub unsafe fn PD_TensorMutableDataInt32(
3637 &self,
3638 pd_tensor: *mut PD_Tensor,
3639 place: PD_PlaceType,
3640 ) -> *mut i32 {
3641 (self
3642 .PD_TensorMutableDataInt32
3643 .as_ref()
3644 .expect("Expected function, got error."))(pd_tensor, place)
3645 }
3646 pub unsafe fn PD_TensorMutableDataUint8(
3647 &self,
3648 pd_tensor: *mut PD_Tensor,
3649 place: PD_PlaceType,
3650 ) -> *mut u8 {
3651 (self
3652 .PD_TensorMutableDataUint8
3653 .as_ref()
3654 .expect("Expected function, got error."))(pd_tensor, place)
3655 }
3656 pub unsafe fn PD_TensorMutableDataInt8(
3657 &self,
3658 pd_tensor: *mut PD_Tensor,
3659 place: PD_PlaceType,
3660 ) -> *mut i8 {
3661 (self
3662 .PD_TensorMutableDataInt8
3663 .as_ref()
3664 .expect("Expected function, got error."))(pd_tensor, place)
3665 }
3666 pub unsafe fn PD_TensorDataFloat(
3667 &self,
3668 pd_tensor: *mut PD_Tensor,
3669 place: *mut PD_PlaceType,
3670 size: *mut i32,
3671 ) -> *mut f32 {
3672 (self
3673 .PD_TensorDataFloat
3674 .as_ref()
3675 .expect("Expected function, got error."))(pd_tensor, place, size)
3676 }
3677 pub unsafe fn PD_TensorDataInt64(
3678 &self,
3679 pd_tensor: *mut PD_Tensor,
3680 place: *mut PD_PlaceType,
3681 size: *mut i32,
3682 ) -> *mut i64 {
3683 (self
3684 .PD_TensorDataInt64
3685 .as_ref()
3686 .expect("Expected function, got error."))(pd_tensor, place, size)
3687 }
3688 pub unsafe fn PD_TensorDataInt32(
3689 &self,
3690 pd_tensor: *mut PD_Tensor,
3691 place: *mut PD_PlaceType,
3692 size: *mut i32,
3693 ) -> *mut i32 {
3694 (self
3695 .PD_TensorDataInt32
3696 .as_ref()
3697 .expect("Expected function, got error."))(pd_tensor, place, size)
3698 }
3699 pub unsafe fn PD_TensorDataUint8(
3700 &self,
3701 pd_tensor: *mut PD_Tensor,
3702 place: *mut PD_PlaceType,
3703 size: *mut i32,
3704 ) -> *mut u8 {
3705 (self
3706 .PD_TensorDataUint8
3707 .as_ref()
3708 .expect("Expected function, got error."))(pd_tensor, place, size)
3709 }
3710 pub unsafe fn PD_TensorDataInt8(
3711 &self,
3712 pd_tensor: *mut PD_Tensor,
3713 place: *mut PD_PlaceType,
3714 size: *mut i32,
3715 ) -> *mut i8 {
3716 (self
3717 .PD_TensorDataInt8
3718 .as_ref()
3719 .expect("Expected function, got error."))(pd_tensor, place, size)
3720 }
3721 pub unsafe fn PD_TensorCopyFromCpuFloat(
3722 &self,
3723 pd_tensor: *mut PD_Tensor,
3724 data: *const f32,
3725 ) -> () {
3726 (self
3727 .PD_TensorCopyFromCpuFloat
3728 .as_ref()
3729 .expect("Expected function, got error."))(pd_tensor, data)
3730 }
3731 pub unsafe fn PD_TensorCopyFromCpuInt64(
3732 &self,
3733 pd_tensor: *mut PD_Tensor,
3734 data: *const i64,
3735 ) -> () {
3736 (self
3737 .PD_TensorCopyFromCpuInt64
3738 .as_ref()
3739 .expect("Expected function, got error."))(pd_tensor, data)
3740 }
3741 pub unsafe fn PD_TensorCopyFromCpuInt32(
3742 &self,
3743 pd_tensor: *mut PD_Tensor,
3744 data: *const i32,
3745 ) -> () {
3746 (self
3747 .PD_TensorCopyFromCpuInt32
3748 .as_ref()
3749 .expect("Expected function, got error."))(pd_tensor, data)
3750 }
3751 pub unsafe fn PD_TensorCopyFromCpuUint8(
3752 &self,
3753 pd_tensor: *mut PD_Tensor,
3754 data: *const u8,
3755 ) -> () {
3756 (self
3757 .PD_TensorCopyFromCpuUint8
3758 .as_ref()
3759 .expect("Expected function, got error."))(pd_tensor, data)
3760 }
3761 pub unsafe fn PD_TensorCopyFromCpuInt8(
3762 &self,
3763 pd_tensor: *mut PD_Tensor,
3764 data: *const i8,
3765 ) -> () {
3766 (self
3767 .PD_TensorCopyFromCpuInt8
3768 .as_ref()
3769 .expect("Expected function, got error."))(pd_tensor, data)
3770 }
3771 pub unsafe fn PD_TensorCopyToCpuFloat(&self, pd_tensor: *mut PD_Tensor, data: *mut f32) -> () {
3772 (self
3773 .PD_TensorCopyToCpuFloat
3774 .as_ref()
3775 .expect("Expected function, got error."))(pd_tensor, data)
3776 }
3777 pub unsafe fn PD_TensorCopyToCpuInt64(&self, pd_tensor: *mut PD_Tensor, data: *mut i64) -> () {
3778 (self
3779 .PD_TensorCopyToCpuInt64
3780 .as_ref()
3781 .expect("Expected function, got error."))(pd_tensor, data)
3782 }
3783 pub unsafe fn PD_TensorCopyToCpuInt32(&self, pd_tensor: *mut PD_Tensor, data: *mut i32) -> () {
3784 (self
3785 .PD_TensorCopyToCpuInt32
3786 .as_ref()
3787 .expect("Expected function, got error."))(pd_tensor, data)
3788 }
3789 pub unsafe fn PD_TensorCopyToCpuUint8(&self, pd_tensor: *mut PD_Tensor, data: *mut u8) -> () {
3790 (self
3791 .PD_TensorCopyToCpuUint8
3792 .as_ref()
3793 .expect("Expected function, got error."))(pd_tensor, data)
3794 }
3795 pub unsafe fn PD_TensorCopyToCpuInt8(&self, pd_tensor: *mut PD_Tensor, data: *mut i8) -> () {
3796 (self
3797 .PD_TensorCopyToCpuInt8
3798 .as_ref()
3799 .expect("Expected function, got error."))(pd_tensor, data)
3800 }
3801 pub unsafe fn PD_TensorGetShape(&self, pd_tensor: *mut PD_Tensor) -> *mut PD_OneDimArrayInt32 {
3802 (self
3803 .PD_TensorGetShape
3804 .as_ref()
3805 .expect("Expected function, got error."))(pd_tensor)
3806 }
3807 pub unsafe fn PD_TensorSetLod(
3808 &self,
3809 pd_tensor: *mut PD_Tensor,
3810 lod: *mut PD_TwoDimArraySize,
3811 ) -> () {
3812 (self
3813 .PD_TensorSetLod
3814 .as_ref()
3815 .expect("Expected function, got error."))(pd_tensor, lod)
3816 }
3817 pub unsafe fn PD_TensorGetLod(&self, pd_tensor: *mut PD_Tensor) -> *mut PD_TwoDimArraySize {
3818 (self
3819 .PD_TensorGetLod
3820 .as_ref()
3821 .expect("Expected function, got error."))(pd_tensor)
3822 }
3823 pub unsafe fn PD_TensorGetName(
3824 &self,
3825 pd_tensor: *mut PD_Tensor,
3826 ) -> *const ::std::os::raw::c_char {
3827 (self
3828 .PD_TensorGetName
3829 .as_ref()
3830 .expect("Expected function, got error."))(pd_tensor)
3831 }
3832 pub unsafe fn PD_TensorGetDataType(&self, pd_tensor: *mut PD_Tensor) -> PD_DataType {
3833 (self
3834 .PD_TensorGetDataType
3835 .as_ref()
3836 .expect("Expected function, got error."))(pd_tensor)
3837 }
3838 pub unsafe fn PD_OneDimArrayInt32Destroy(&self, array: *mut PD_OneDimArrayInt32) -> () {
3839 (self
3840 .PD_OneDimArrayInt32Destroy
3841 .as_ref()
3842 .expect("Expected function, got error."))(array)
3843 }
3844 pub unsafe fn PD_OneDimArrayCstrDestroy(&self, array: *mut PD_OneDimArrayCstr) -> () {
3845 (self
3846 .PD_OneDimArrayCstrDestroy
3847 .as_ref()
3848 .expect("Expected function, got error."))(array)
3849 }
3850 pub unsafe fn PD_OneDimArraySizeDestroy(&self, array: *mut PD_OneDimArraySize) -> () {
3851 (self
3852 .PD_OneDimArraySizeDestroy
3853 .as_ref()
3854 .expect("Expected function, got error."))(array)
3855 }
3856 pub unsafe fn PD_TwoDimArraySizeDestroy(&self, array: *mut PD_TwoDimArraySize) -> () {
3857 (self
3858 .PD_TwoDimArraySizeDestroy
3859 .as_ref()
3860 .expect("Expected function, got error."))(array)
3861 }
3862}