Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / third_party / om-file-format-sys / src / bindings_android.rs

bindings_android.rs3258 lines · 110.2 KiBRaw
1/* automatically generated by rust-bindgen 0.72.1 */
2
3#[doc = r" If Bindgen could only determine the size and alignment of a"]
4#[doc = r" type, it is represented like this."]
5#[derive(PartialEq, Copy, Clone, Debug, Hash)]
6#[repr(C)]
7pub struct __BindgenOpaqueArray<T: Copy, const N: usize>(pub [T; N]);
8impl<T: Copy + Default, const N: usize> Default for __BindgenOpaqueArray<T, N> {
9 fn default() -> Self {
10 Self([<T as Default>::default(); N])
11 }
12}
13pub const __BIONIC__: u32 = 1;
14pub const __WORDSIZE: u32 = 64;
15pub const __bos_level: u32 = 0;
16pub const __ANDROID_API_FUTURE__: u32 = 10000;
17pub const __ANDROID_API_G__: u32 = 9;
18pub const __ANDROID_API_I__: u32 = 14;
19pub const __ANDROID_API_J__: u32 = 16;
20pub const __ANDROID_API_J_MR1__: u32 = 17;
21pub const __ANDROID_API_J_MR2__: u32 = 18;
22pub const __ANDROID_API_K__: u32 = 19;
23pub const __ANDROID_API_L__: u32 = 21;
24pub const __ANDROID_API_L_MR1__: u32 = 22;
25pub const __ANDROID_API_M__: u32 = 23;
26pub const __ANDROID_API_N__: u32 = 24;
27pub const __ANDROID_API_N_MR1__: u32 = 25;
28pub const __ANDROID_API_O__: u32 = 26;
29pub const __ANDROID_API_O_MR1__: u32 = 27;
30pub const __ANDROID_API_P__: u32 = 28;
31pub const __ANDROID_API_Q__: u32 = 29;
32pub const __ANDROID_API_R__: u32 = 30;
33pub const __ANDROID_API_S__: u32 = 31;
34pub const __ANDROID_API_T__: u32 = 33;
35pub const __ANDROID_API_U__: u32 = 34;
36pub const __ANDROID_API_V__: u32 = 35;
37pub const __ANDROID_NDK__: u32 = 1;
38pub const __NDK_MAJOR__: u32 = 29;
39pub const __NDK_MINOR__: u32 = 0;
40pub const __NDK_BETA__: u32 = 0;
41pub const __NDK_BUILD__: u32 = 14206865;
42pub const __NDK_CANARY__: u32 = 0;
43pub const WCHAR_MIN: u8 = 0u8;
44pub const INT8_MIN: i32 = -128;
45pub const INT8_MAX: u32 = 127;
46pub const INT_LEAST8_MIN: i32 = -128;
47pub const INT_LEAST8_MAX: u32 = 127;
48pub const INT_FAST8_MIN: i32 = -128;
49pub const INT_FAST8_MAX: u32 = 127;
50pub const UINT8_MAX: u32 = 255;
51pub const UINT_LEAST8_MAX: u32 = 255;
52pub const UINT_FAST8_MAX: u32 = 255;
53pub const INT16_MIN: i32 = -32768;
54pub const INT16_MAX: u32 = 32767;
55pub const INT_LEAST16_MIN: i32 = -32768;
56pub const INT_LEAST16_MAX: u32 = 32767;
57pub const UINT16_MAX: u32 = 65535;
58pub const UINT_LEAST16_MAX: u32 = 65535;
59pub const INT32_MIN: i32 = -2147483648;
60pub const INT32_MAX: u32 = 2147483647;
61pub const INT_LEAST32_MIN: i32 = -2147483648;
62pub const INT_LEAST32_MAX: u32 = 2147483647;
63pub const INT_FAST32_MIN: i32 = -2147483648;
64pub const INT_FAST32_MAX: u32 = 2147483647;
65pub const UINT32_MAX: u32 = 4294967295;
66pub const UINT_LEAST32_MAX: u32 = 4294967295;
67pub const UINT_FAST32_MAX: u32 = 4294967295;
68pub const SIG_ATOMIC_MAX: u32 = 2147483647;
69pub const SIG_ATOMIC_MIN: i32 = -2147483648;
70pub const WINT_MAX: u32 = 4294967295;
71pub const WINT_MIN: u32 = 0;
72pub const P4D_MAX: u32 = 256;
73pub const __BITS_PER_LONG: u32 = 64;
74pub const __BITS_PER_LONG_LONG: u32 = 64;
75pub const __FD_SETSIZE: u32 = 1024;
76pub const SEEK_SET: u32 = 0;
77pub const SEEK_CUR: u32 = 1;
78pub const SEEK_END: u32 = 2;
79pub const _IOFBF: u32 = 0;
80pub const _IOLBF: u32 = 1;
81pub const _IONBF: u32 = 2;
82pub const BUFSIZ: u32 = 1024;
83pub const EOF: i32 = -1;
84pub const FOPEN_MAX: u32 = 20;
85pub const FILENAME_MAX: u32 = 4096;
86pub const L_tmpnam: u32 = 4096;
87pub const TMP_MAX: u32 = 308915776;
88pub const P_tmpdir: &[u8; 6] = b"/tmp/\0";
89pub const L_ctermid: u32 = 1024;
90pub const __bool_true_false_are_defined: u32 = 1;
91pub const true_: u32 = 1;
92pub const false_: u32 = 0;
93pub const LUT_CHUNK_COUNT: u32 = 64;
94unsafe extern "C" {
95 pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int;
96}
97unsafe extern "C" {
98 pub fn android_get_device_api_level() -> ::std::os::raw::c_int;
99}
100pub type wchar_t = ::std::os::raw::c_uint;
101#[repr(C)]
102#[repr(align(16))]
103#[derive(Debug, Copy, Clone)]
104pub struct max_align_t {
105 pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
106 pub __bindgen_padding_0: u64,
107 pub __clang_max_align_nonce2: u128,
108}
109#[allow(clippy::unnecessary_operation, clippy::identity_op)]
110const _: () = {
111 ["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 32usize];
112 ["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 16usize];
113 ["Offset of field: max_align_t::__clang_max_align_nonce1"]
114 [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
115 ["Offset of field: max_align_t::__clang_max_align_nonce2"]
116 [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize];
117};
118pub type __int8_t = ::std::os::raw::c_schar;
119pub type __uint8_t = ::std::os::raw::c_uchar;
120pub type __int16_t = ::std::os::raw::c_short;
121pub type __uint16_t = ::std::os::raw::c_ushort;
122pub type __int32_t = ::std::os::raw::c_int;
123pub type __uint32_t = ::std::os::raw::c_uint;
124pub type __int64_t = ::std::os::raw::c_long;
125pub type __uint64_t = ::std::os::raw::c_ulong;
126pub type __intptr_t = ::std::os::raw::c_long;
127pub type __uintptr_t = ::std::os::raw::c_ulong;
128pub type int_least8_t = i8;
129pub type uint_least8_t = u8;
130pub type int_least16_t = i16;
131pub type uint_least16_t = u16;
132pub type int_least32_t = i32;
133pub type uint_least32_t = u32;
134pub type int_least64_t = i64;
135pub type uint_least64_t = u64;
136pub type int_fast8_t = i8;
137pub type uint_fast8_t = u8;
138pub type int_fast64_t = i64;
139pub type uint_fast64_t = u64;
140pub type int_fast16_t = i64;
141pub type uint_fast16_t = u64;
142pub type int_fast32_t = i64;
143pub type uint_fast32_t = u64;
144pub type uintmax_t = u64;
145pub type intmax_t = i64;
146unsafe extern "C" {
147 pub fn p4nenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
148}
149unsafe extern "C" {
150 pub fn p4nenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
151}
152unsafe extern "C" {
153 pub fn p4nenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
154}
155unsafe extern "C" {
156 pub fn p4nenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
157}
158unsafe extern "C" {
159 pub fn p4nenc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
160}
161unsafe extern "C" {
162 pub fn p4nenc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
163}
164unsafe extern "C" {
165 pub fn p4nenc128v64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
166}
167unsafe extern "C" {
168 pub fn p4nenc256w32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
169}
170unsafe extern "C" {
171 pub fn p4nenc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
172}
173unsafe extern "C" {
174 pub fn p4ndenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
175}
176unsafe extern "C" {
177 pub fn p4ndenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
178}
179unsafe extern "C" {
180 pub fn p4ndenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
181}
182unsafe extern "C" {
183 pub fn p4ndenc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
184}
185unsafe extern "C" {
186 pub fn p4ndenc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
187}
188unsafe extern "C" {
189 pub fn p4ndenc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
190}
191unsafe extern "C" {
192 pub fn p4ndenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
193}
194unsafe extern "C" {
195 pub fn p4nd1enc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
196}
197unsafe extern "C" {
198 pub fn p4nd1enc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
199}
200unsafe extern "C" {
201 pub fn p4nd1enc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
202}
203unsafe extern "C" {
204 pub fn p4nd1enc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
205}
206unsafe extern "C" {
207 pub fn p4nd1enc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
208}
209unsafe extern "C" {
210 pub fn p4nd1enc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
211}
212unsafe extern "C" {
213 pub fn p4nd1enc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
214}
215unsafe extern "C" {
216 pub fn p4nzenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
217}
218unsafe extern "C" {
219 pub fn p4nzenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
220}
221unsafe extern "C" {
222 pub fn p4nzenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
223}
224unsafe extern "C" {
225 pub fn p4nzenc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
226}
227unsafe extern "C" {
228 pub fn p4nzenc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
229}
230unsafe extern "C" {
231 pub fn p4nzenc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
232}
233unsafe extern "C" {
234 pub fn p4nzenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
235}
236unsafe extern "C" {
237 pub fn p4ndec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize;
238}
239unsafe extern "C" {
240 pub fn p4ndec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
241}
242unsafe extern "C" {
243 pub fn p4ndec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
244}
245unsafe extern "C" {
246 pub fn p4ndec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize;
247}
248unsafe extern "C" {
249 pub fn p4ndec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
250}
251unsafe extern "C" {
252 pub fn p4ndec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
253}
254unsafe extern "C" {
255 pub fn p4ndec128v64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize;
256}
257unsafe extern "C" {
258 pub fn p4ndec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
259}
260unsafe extern "C" {
261 pub fn p4nddec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize;
262}
263unsafe extern "C" {
264 pub fn p4nddec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
265}
266unsafe extern "C" {
267 pub fn p4nddec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
268}
269unsafe extern "C" {
270 pub fn p4nddec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
271}
272unsafe extern "C" {
273 pub fn p4nddec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
274}
275unsafe extern "C" {
276 pub fn p4nddec256w32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
277}
278unsafe extern "C" {
279 pub fn p4nddec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
280}
281unsafe extern "C" {
282 pub fn p4nddec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize;
283}
284unsafe extern "C" {
285 pub fn p4nd1dec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize;
286}
287unsafe extern "C" {
288 pub fn p4nd1dec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
289}
290unsafe extern "C" {
291 pub fn p4nd1dec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
292}
293unsafe extern "C" {
294 pub fn p4nd1dec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
295}
296unsafe extern "C" {
297 pub fn p4nd1dec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
298}
299unsafe extern "C" {
300 pub fn p4nd1dec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
301}
302unsafe extern "C" {
303 pub fn p4nd1dec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize;
304}
305unsafe extern "C" {
306 pub fn p4nzdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize;
307}
308unsafe extern "C" {
309 pub fn p4nzdec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
310}
311unsafe extern "C" {
312 pub fn p4nzdec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
313}
314unsafe extern "C" {
315 pub fn p4nzdec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
316}
317unsafe extern "C" {
318 pub fn p4nzdec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
319}
320unsafe extern "C" {
321 pub fn p4nzdec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
322}
323unsafe extern "C" {
324 pub fn p4nzdec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize;
325}
326unsafe extern "C" {
327 pub fn p4enc8(
328 in_: *mut u8,
329 n: ::std::os::raw::c_uint,
330 out: *mut ::std::os::raw::c_uchar,
331 ) -> *mut ::std::os::raw::c_uchar;
332}
333unsafe extern "C" {
334 pub fn p4enc16(
335 in_: *mut u16,
336 n: ::std::os::raw::c_uint,
337 out: *mut ::std::os::raw::c_uchar,
338 ) -> *mut ::std::os::raw::c_uchar;
339}
340unsafe extern "C" {
341 pub fn p4enc32(
342 in_: *mut u32,
343 n: ::std::os::raw::c_uint,
344 out: *mut ::std::os::raw::c_uchar,
345 ) -> *mut ::std::os::raw::c_uchar;
346}
347unsafe extern "C" {
348 pub fn p4enc128v16(
349 in_: *mut u16,
350 n: ::std::os::raw::c_uint,
351 out: *mut ::std::os::raw::c_uchar,
352 ) -> *mut ::std::os::raw::c_uchar;
353}
354unsafe extern "C" {
355 pub fn p4enc128v32(
356 in_: *mut u32,
357 n: ::std::os::raw::c_uint,
358 out: *mut ::std::os::raw::c_uchar,
359 ) -> *mut ::std::os::raw::c_uchar;
360}
361unsafe extern "C" {
362 pub fn p4enc128v64(
363 in_: *mut u64,
364 n: ::std::os::raw::c_uint,
365 out: *mut ::std::os::raw::c_uchar,
366 ) -> *mut ::std::os::raw::c_uchar;
367}
368unsafe extern "C" {
369 pub fn p4enc256v32(
370 in_: *mut u32,
371 n: ::std::os::raw::c_uint,
372 out: *mut ::std::os::raw::c_uchar,
373 ) -> *mut ::std::os::raw::c_uchar;
374}
375unsafe extern "C" {
376 pub fn p4enc64(
377 in_: *mut u64,
378 n: ::std::os::raw::c_uint,
379 out: *mut ::std::os::raw::c_uchar,
380 ) -> *mut ::std::os::raw::c_uchar;
381}
382unsafe extern "C" {
383 pub fn p4enc256w32(
384 in_: *mut u32,
385 n: ::std::os::raw::c_uint,
386 out: *mut ::std::os::raw::c_uchar,
387 ) -> *mut ::std::os::raw::c_uchar;
388}
389unsafe extern "C" {
390 pub fn p4encx8(
391 in_: *mut u8,
392 n: ::std::os::raw::c_uint,
393 out: *mut ::std::os::raw::c_uchar,
394 ) -> *mut ::std::os::raw::c_uchar;
395}
396unsafe extern "C" {
397 pub fn p4encx16(
398 in_: *mut u16,
399 n: ::std::os::raw::c_uint,
400 out: *mut ::std::os::raw::c_uchar,
401 ) -> *mut ::std::os::raw::c_uchar;
402}
403unsafe extern "C" {
404 pub fn p4encx32(
405 in_: *mut u32,
406 n: ::std::os::raw::c_uint,
407 out: *mut ::std::os::raw::c_uchar,
408 ) -> *mut ::std::os::raw::c_uchar;
409}
410unsafe extern "C" {
411 pub fn p4encx64(
412 in_: *mut u64,
413 n: ::std::os::raw::c_uint,
414 out: *mut ::std::os::raw::c_uchar,
415 ) -> *mut ::std::os::raw::c_uchar;
416}
417unsafe extern "C" {
418 pub fn p4denc8(
419 in_: *mut u8,
420 n: ::std::os::raw::c_uint,
421 out: *mut ::std::os::raw::c_uchar,
422 start: u8,
423 ) -> *mut ::std::os::raw::c_uchar;
424}
425unsafe extern "C" {
426 pub fn p4denc16(
427 in_: *mut u16,
428 n: ::std::os::raw::c_uint,
429 out: *mut ::std::os::raw::c_uchar,
430 start: u16,
431 ) -> *mut ::std::os::raw::c_uchar;
432}
433unsafe extern "C" {
434 pub fn p4denc32(
435 in_: *mut u32,
436 n: ::std::os::raw::c_uint,
437 out: *mut ::std::os::raw::c_uchar,
438 start: u32,
439 ) -> *mut ::std::os::raw::c_uchar;
440}
441unsafe extern "C" {
442 pub fn p4denc128v16(
443 in_: *mut u16,
444 n: ::std::os::raw::c_uint,
445 out: *mut ::std::os::raw::c_uchar,
446 start: u16,
447 ) -> *mut ::std::os::raw::c_uchar;
448}
449unsafe extern "C" {
450 pub fn p4denc128v32(
451 in_: *mut u32,
452 n: ::std::os::raw::c_uint,
453 out: *mut ::std::os::raw::c_uchar,
454 start: u32,
455 ) -> *mut ::std::os::raw::c_uchar;
456}
457unsafe extern "C" {
458 pub fn p4denc256v32(
459 in_: *mut u32,
460 n: ::std::os::raw::c_uint,
461 out: *mut ::std::os::raw::c_uchar,
462 start: u32,
463 ) -> *mut ::std::os::raw::c_uchar;
464}
465unsafe extern "C" {
466 pub fn p4denc64(
467 in_: *mut u64,
468 n: ::std::os::raw::c_uint,
469 out: *mut ::std::os::raw::c_uchar,
470 start: u64,
471 ) -> *mut ::std::os::raw::c_uchar;
472}
473unsafe extern "C" {
474 pub fn p4denc256w32(
475 in_: *mut u32,
476 n: ::std::os::raw::c_uint,
477 out: *mut ::std::os::raw::c_uchar,
478 start: u32,
479 ) -> *mut ::std::os::raw::c_uchar;
480}
481unsafe extern "C" {
482 pub fn p4dencx8(
483 in_: *mut u8,
484 n: ::std::os::raw::c_uint,
485 out: *mut ::std::os::raw::c_uchar,
486 start: u8,
487 ) -> *mut ::std::os::raw::c_uchar;
488}
489unsafe extern "C" {
490 pub fn p4dencx16(
491 in_: *mut u16,
492 n: ::std::os::raw::c_uint,
493 out: *mut ::std::os::raw::c_uchar,
494 start: u16,
495 ) -> *mut ::std::os::raw::c_uchar;
496}
497unsafe extern "C" {
498 pub fn p4dencx32(
499 in_: *mut ::std::os::raw::c_uint,
500 n: ::std::os::raw::c_uint,
501 out: *mut ::std::os::raw::c_uchar,
502 start: u32,
503 ) -> *mut ::std::os::raw::c_uchar;
504}
505unsafe extern "C" {
506 pub fn p4d1enc8(
507 in_: *mut u8,
508 n: ::std::os::raw::c_uint,
509 out: *mut ::std::os::raw::c_uchar,
510 start: u8,
511 ) -> *mut ::std::os::raw::c_uchar;
512}
513unsafe extern "C" {
514 pub fn p4d1enc16(
515 in_: *mut u16,
516 n: ::std::os::raw::c_uint,
517 out: *mut ::std::os::raw::c_uchar,
518 start: u16,
519 ) -> *mut ::std::os::raw::c_uchar;
520}
521unsafe extern "C" {
522 pub fn p4d1enc32(
523 in_: *mut u32,
524 n: ::std::os::raw::c_uint,
525 out: *mut ::std::os::raw::c_uchar,
526 start: u32,
527 ) -> *mut ::std::os::raw::c_uchar;
528}
529unsafe extern "C" {
530 pub fn p4d1enc128v16(
531 in_: *mut u16,
532 n: ::std::os::raw::c_uint,
533 out: *mut ::std::os::raw::c_uchar,
534 start: u16,
535 ) -> *mut ::std::os::raw::c_uchar;
536}
537unsafe extern "C" {
538 pub fn p4d1enc128v32(
539 in_: *mut u32,
540 n: ::std::os::raw::c_uint,
541 out: *mut ::std::os::raw::c_uchar,
542 start: u32,
543 ) -> *mut ::std::os::raw::c_uchar;
544}
545unsafe extern "C" {
546 pub fn p4d1enc256v32(
547 in_: *mut u32,
548 n: ::std::os::raw::c_uint,
549 out: *mut ::std::os::raw::c_uchar,
550 start: u32,
551 ) -> *mut ::std::os::raw::c_uchar;
552}
553unsafe extern "C" {
554 pub fn p4d1enc64(
555 in_: *mut u64,
556 n: ::std::os::raw::c_uint,
557 out: *mut ::std::os::raw::c_uchar,
558 start: u64,
559 ) -> *mut ::std::os::raw::c_uchar;
560}
561unsafe extern "C" {
562 pub fn p4d1encx8(
563 in_: *mut u8,
564 n: ::std::os::raw::c_uint,
565 out: *mut ::std::os::raw::c_uchar,
566 start: u8,
567 ) -> *mut ::std::os::raw::c_uchar;
568}
569unsafe extern "C" {
570 pub fn p4d1encx16(
571 in_: *mut u16,
572 n: ::std::os::raw::c_uint,
573 out: *mut ::std::os::raw::c_uchar,
574 start: u16,
575 ) -> *mut ::std::os::raw::c_uchar;
576}
577unsafe extern "C" {
578 pub fn p4d1encx32(
579 in_: *mut u32,
580 n: ::std::os::raw::c_uint,
581 out: *mut ::std::os::raw::c_uchar,
582 start: u32,
583 ) -> *mut ::std::os::raw::c_uchar;
584}
585unsafe extern "C" {
586 pub fn p4zenc8(
587 in_: *mut u8,
588 n: ::std::os::raw::c_uint,
589 out: *mut ::std::os::raw::c_uchar,
590 start: u8,
591 ) -> *mut ::std::os::raw::c_uchar;
592}
593unsafe extern "C" {
594 pub fn p4zenc16(
595 in_: *mut u16,
596 n: ::std::os::raw::c_uint,
597 out: *mut ::std::os::raw::c_uchar,
598 start: u16,
599 ) -> *mut ::std::os::raw::c_uchar;
600}
601unsafe extern "C" {
602 pub fn p4zenc32(
603 in_: *mut u32,
604 n: ::std::os::raw::c_uint,
605 out: *mut ::std::os::raw::c_uchar,
606 start: u32,
607 ) -> *mut ::std::os::raw::c_uchar;
608}
609unsafe extern "C" {
610 pub fn p4zenc128v16(
611 in_: *mut u16,
612 n: ::std::os::raw::c_uint,
613 out: *mut ::std::os::raw::c_uchar,
614 start: u16,
615 ) -> *mut ::std::os::raw::c_uchar;
616}
617unsafe extern "C" {
618 pub fn p4zenc128v32(
619 in_: *mut u32,
620 n: ::std::os::raw::c_uint,
621 out: *mut ::std::os::raw::c_uchar,
622 start: u32,
623 ) -> *mut ::std::os::raw::c_uchar;
624}
625unsafe extern "C" {
626 pub fn p4zenc256v32(
627 in_: *mut u32,
628 n: ::std::os::raw::c_uint,
629 out: *mut ::std::os::raw::c_uchar,
630 start: u32,
631 ) -> *mut ::std::os::raw::c_uchar;
632}
633unsafe extern "C" {
634 pub fn p4zenc64(
635 in_: *mut u64,
636 n: ::std::os::raw::c_uint,
637 out: *mut ::std::os::raw::c_uchar,
638 start: u64,
639 ) -> *mut ::std::os::raw::c_uchar;
640}
641unsafe extern "C" {
642 pub fn p4senc16(
643 in_: *mut u16,
644 n: ::std::os::raw::c_uint,
645 out: *mut ::std::os::raw::c_uchar,
646 start: u16,
647 ) -> *mut ::std::os::raw::c_uchar;
648}
649unsafe extern "C" {
650 pub fn p4senc32(
651 in_: *mut u32,
652 n: ::std::os::raw::c_uint,
653 out: *mut ::std::os::raw::c_uchar,
654 start: u32,
655 ) -> *mut ::std::os::raw::c_uchar;
656}
657unsafe extern "C" {
658 pub fn p4senc64(
659 in_: *mut u64,
660 n: ::std::os::raw::c_uint,
661 out: *mut ::std::os::raw::c_uchar,
662 start: u64,
663 ) -> *mut ::std::os::raw::c_uchar;
664}
665unsafe extern "C" {
666 pub fn p4sdec16(
667 in_: *mut ::std::os::raw::c_uchar,
668 n: ::std::os::raw::c_uint,
669 out: *mut u16,
670 start: u16,
671 ) -> *mut ::std::os::raw::c_uchar;
672}
673unsafe extern "C" {
674 pub fn p4sdec32(
675 in_: *mut ::std::os::raw::c_uchar,
676 n: ::std::os::raw::c_uint,
677 out: *mut u32,
678 start: u32,
679 ) -> *mut ::std::os::raw::c_uchar;
680}
681unsafe extern "C" {
682 pub fn p4sdec64(
683 in_: *mut ::std::os::raw::c_uchar,
684 n: ::std::os::raw::c_uint,
685 out: *mut u64,
686 start: u64,
687 ) -> *mut ::std::os::raw::c_uchar;
688}
689unsafe extern "C" {
690 pub fn p4nsenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
691}
692unsafe extern "C" {
693 pub fn p4nsenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
694}
695unsafe extern "C" {
696 pub fn p4nsenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize;
697}
698unsafe extern "C" {
699 pub fn p4nsdec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize;
700}
701unsafe extern "C" {
702 pub fn p4nsdec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize;
703}
704unsafe extern "C" {
705 pub fn p4nsdec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize;
706}
707unsafe extern "C" {
708 pub fn _p4enc8(
709 in_: *mut u8,
710 n: ::std::os::raw::c_uint,
711 out: *mut ::std::os::raw::c_uchar,
712 b: ::std::os::raw::c_uint,
713 bx: ::std::os::raw::c_uint,
714 ) -> *mut ::std::os::raw::c_uchar;
715}
716unsafe extern "C" {
717 pub fn _p4enc16(
718 in_: *mut u16,
719 n: ::std::os::raw::c_uint,
720 out: *mut ::std::os::raw::c_uchar,
721 b: ::std::os::raw::c_uint,
722 bx: ::std::os::raw::c_uint,
723 ) -> *mut ::std::os::raw::c_uchar;
724}
725unsafe extern "C" {
726 pub fn _p4enc32(
727 in_: *mut u32,
728 n: ::std::os::raw::c_uint,
729 out: *mut ::std::os::raw::c_uchar,
730 b: ::std::os::raw::c_uint,
731 bx: ::std::os::raw::c_uint,
732 ) -> *mut ::std::os::raw::c_uchar;
733}
734unsafe extern "C" {
735 pub fn _p4enc128v16(
736 in_: *mut u16,
737 n: ::std::os::raw::c_uint,
738 out: *mut ::std::os::raw::c_uchar,
739 b: ::std::os::raw::c_uint,
740 bx: ::std::os::raw::c_uint,
741 ) -> *mut ::std::os::raw::c_uchar;
742}
743unsafe extern "C" {
744 pub fn _p4enc128v32(
745 in_: *mut u32,
746 n: ::std::os::raw::c_uint,
747 out: *mut ::std::os::raw::c_uchar,
748 b: ::std::os::raw::c_uint,
749 bx: ::std::os::raw::c_uint,
750 ) -> *mut ::std::os::raw::c_uchar;
751}
752unsafe extern "C" {
753 pub fn _p4enc128v64(
754 in_: *mut u64,
755 n: ::std::os::raw::c_uint,
756 out: *mut ::std::os::raw::c_uchar,
757 b: ::std::os::raw::c_uint,
758 bx: ::std::os::raw::c_uint,
759 ) -> *mut ::std::os::raw::c_uchar;
760}
761unsafe extern "C" {
762 pub fn _p4enc256v32(
763 in_: *mut u32,
764 n: ::std::os::raw::c_uint,
765 out: *mut ::std::os::raw::c_uchar,
766 b: ::std::os::raw::c_uint,
767 bx: ::std::os::raw::c_uint,
768 ) -> *mut ::std::os::raw::c_uchar;
769}
770unsafe extern "C" {
771 pub fn _p4enc64(
772 in_: *mut u64,
773 n: ::std::os::raw::c_uint,
774 out: *mut ::std::os::raw::c_uchar,
775 b: ::std::os::raw::c_uint,
776 bx: ::std::os::raw::c_uint,
777 ) -> *mut ::std::os::raw::c_uchar;
778}
779unsafe extern "C" {
780 pub fn _p4bits8(
781 in_: *mut u8,
782 n: ::std::os::raw::c_uint,
783 pbx: *mut ::std::os::raw::c_uint,
784 ) -> ::std::os::raw::c_uint;
785}
786unsafe extern "C" {
787 pub fn _p4bits16(
788 in_: *mut u16,
789 n: ::std::os::raw::c_uint,
790 pbx: *mut ::std::os::raw::c_uint,
791 ) -> ::std::os::raw::c_uint;
792}
793unsafe extern "C" {
794 pub fn _p4bits32(
795 in_: *mut u32,
796 n: ::std::os::raw::c_uint,
797 pbx: *mut ::std::os::raw::c_uint,
798 ) -> ::std::os::raw::c_uint;
799}
800unsafe extern "C" {
801 pub fn _p4bits64(
802 in_: *mut u64,
803 n: ::std::os::raw::c_uint,
804 pbx: *mut ::std::os::raw::c_uint,
805 ) -> ::std::os::raw::c_uint;
806}
807unsafe extern "C" {
808 pub fn _p4bitsx8(
809 in_: *mut u8,
810 n: ::std::os::raw::c_uint,
811 pbx: *mut ::std::os::raw::c_uint,
812 ) -> ::std::os::raw::c_uint;
813}
814unsafe extern "C" {
815 pub fn _p4bitsx16(
816 in_: *mut u16,
817 n: ::std::os::raw::c_uint,
818 pbx: *mut ::std::os::raw::c_uint,
819 ) -> ::std::os::raw::c_uint;
820}
821unsafe extern "C" {
822 pub fn _p4bitsx32(
823 in_: *mut u32,
824 n: ::std::os::raw::c_uint,
825 pbx: *mut ::std::os::raw::c_uint,
826 ) -> ::std::os::raw::c_uint;
827}
828unsafe extern "C" {
829 pub fn _p4bitsx64(
830 in_: *mut u64,
831 n: ::std::os::raw::c_uint,
832 pbx: *mut ::std::os::raw::c_uint,
833 ) -> ::std::os::raw::c_uint;
834}
835unsafe extern "C" {
836 pub fn _p4dec8(
837 in_: *mut ::std::os::raw::c_uchar,
838 n: ::std::os::raw::c_uint,
839 out: *mut u8,
840 b: ::std::os::raw::c_uint,
841 bx: ::std::os::raw::c_uint,
842 ) -> *mut ::std::os::raw::c_uchar;
843}
844unsafe extern "C" {
845 pub fn _p4dec16(
846 in_: *mut ::std::os::raw::c_uchar,
847 n: ::std::os::raw::c_uint,
848 out: *mut u16,
849 b: ::std::os::raw::c_uint,
850 bx: ::std::os::raw::c_uint,
851 ) -> *mut ::std::os::raw::c_uchar;
852}
853unsafe extern "C" {
854 pub fn _p4dec32(
855 in_: *mut ::std::os::raw::c_uchar,
856 n: ::std::os::raw::c_uint,
857 out: *mut u32,
858 b: ::std::os::raw::c_uint,
859 bx: ::std::os::raw::c_uint,
860 ) -> *mut ::std::os::raw::c_uchar;
861}
862unsafe extern "C" {
863 pub fn _p4dec128v16(
864 in_: *mut ::std::os::raw::c_uchar,
865 n: ::std::os::raw::c_uint,
866 out: *mut u16,
867 b: ::std::os::raw::c_uint,
868 bx: ::std::os::raw::c_uint,
869 ) -> *mut ::std::os::raw::c_uchar;
870}
871unsafe extern "C" {
872 pub fn _p4dec128v32(
873 in_: *mut ::std::os::raw::c_uchar,
874 n: ::std::os::raw::c_uint,
875 out: *mut u32,
876 b: ::std::os::raw::c_uint,
877 bx: ::std::os::raw::c_uint,
878 ) -> *mut ::std::os::raw::c_uchar;
879}
880unsafe extern "C" {
881 pub fn _p4dec128v64(
882 in_: *mut ::std::os::raw::c_uchar,
883 n: ::std::os::raw::c_uint,
884 out: *mut u64,
885 b: ::std::os::raw::c_uint,
886 bx: ::std::os::raw::c_uint,
887 ) -> *mut ::std::os::raw::c_uchar;
888}
889unsafe extern "C" {
890 pub fn _p4dec64(
891 in_: *mut ::std::os::raw::c_uchar,
892 n: ::std::os::raw::c_uint,
893 out: *mut u64,
894 b: ::std::os::raw::c_uint,
895 bx: ::std::os::raw::c_uint,
896 ) -> *mut ::std::os::raw::c_uchar;
897}
898unsafe extern "C" {
899 pub fn p4dec8(
900 in_: *mut ::std::os::raw::c_uchar,
901 n: ::std::os::raw::c_uint,
902 out: *mut u8,
903 ) -> *mut ::std::os::raw::c_uchar;
904}
905unsafe extern "C" {
906 pub fn p4dec16(
907 in_: *mut ::std::os::raw::c_uchar,
908 n: ::std::os::raw::c_uint,
909 out: *mut u16,
910 ) -> *mut ::std::os::raw::c_uchar;
911}
912unsafe extern "C" {
913 pub fn p4dec32(
914 in_: *mut ::std::os::raw::c_uchar,
915 n: ::std::os::raw::c_uint,
916 out: *mut u32,
917 ) -> *mut ::std::os::raw::c_uchar;
918}
919unsafe extern "C" {
920 pub fn p4dec128v16(
921 in_: *mut ::std::os::raw::c_uchar,
922 n: ::std::os::raw::c_uint,
923 out: *mut u16,
924 ) -> *mut ::std::os::raw::c_uchar;
925}
926unsafe extern "C" {
927 pub fn p4dec128v32(
928 in_: *mut ::std::os::raw::c_uchar,
929 n: ::std::os::raw::c_uint,
930 out: *mut u32,
931 ) -> *mut ::std::os::raw::c_uchar;
932}
933unsafe extern "C" {
934 pub fn p4dec128v64(
935 in_: *mut ::std::os::raw::c_uchar,
936 n: ::std::os::raw::c_uint,
937 out: *mut u64,
938 ) -> *mut ::std::os::raw::c_uchar;
939}
940unsafe extern "C" {
941 pub fn p4dec256v32(
942 in_: *mut ::std::os::raw::c_uchar,
943 n: ::std::os::raw::c_uint,
944 out: *mut u32,
945 ) -> *mut ::std::os::raw::c_uchar;
946}
947unsafe extern "C" {
948 pub fn p4dec64(
949 in_: *mut ::std::os::raw::c_uchar,
950 n: ::std::os::raw::c_uint,
951 out: *mut u64,
952 ) -> *mut ::std::os::raw::c_uchar;
953}
954unsafe extern "C" {
955 pub fn _p4ddec8(
956 in_: *mut ::std::os::raw::c_uchar,
957 n: ::std::os::raw::c_uint,
958 out: *mut u8,
959 start: u8,
960 b: ::std::os::raw::c_uint,
961 bx: ::std::os::raw::c_uint,
962 ) -> *mut ::std::os::raw::c_uchar;
963}
964unsafe extern "C" {
965 pub fn _p4ddec16(
966 in_: *mut ::std::os::raw::c_uchar,
967 n: ::std::os::raw::c_uint,
968 out: *mut u16,
969 start: u16,
970 b: ::std::os::raw::c_uint,
971 bx: ::std::os::raw::c_uint,
972 ) -> *mut ::std::os::raw::c_uchar;
973}
974unsafe extern "C" {
975 pub fn _p4ddec32(
976 in_: *mut ::std::os::raw::c_uchar,
977 n: ::std::os::raw::c_uint,
978 out: *mut u32,
979 start: u32,
980 b: ::std::os::raw::c_uint,
981 bx: ::std::os::raw::c_uint,
982 ) -> *mut ::std::os::raw::c_uchar;
983}
984unsafe extern "C" {
985 pub fn _p4ddec128v16(
986 in_: *mut ::std::os::raw::c_uchar,
987 n: ::std::os::raw::c_uint,
988 out: *mut u16,
989 start: u16,
990 b: ::std::os::raw::c_uint,
991 bx: ::std::os::raw::c_uint,
992 ) -> *mut ::std::os::raw::c_uchar;
993}
994unsafe extern "C" {
995 pub fn _p4ddec128v32(
996 in_: *mut ::std::os::raw::c_uchar,
997 n: ::std::os::raw::c_uint,
998 out: *mut u32,
999 start: u32,
1000 b: ::std::os::raw::c_uint,
1001 bx: ::std::os::raw::c_uint,
1002 ) -> *mut ::std::os::raw::c_uchar;
1003}
1004unsafe extern "C" {
1005 pub fn _p4ddec256v32(
1006 in_: *mut ::std::os::raw::c_uchar,
1007 n: ::std::os::raw::c_uint,
1008 out: *mut u32,
1009 start: u32,
1010 b: ::std::os::raw::c_uint,
1011 bx: ::std::os::raw::c_uint,
1012 ) -> *mut ::std::os::raw::c_uchar;
1013}
1014unsafe extern "C" {
1015 pub fn _p4ddec64(
1016 in_: *mut ::std::os::raw::c_uchar,
1017 n: ::std::os::raw::c_uint,
1018 out: *mut u64,
1019 start: u64,
1020 b: ::std::os::raw::c_uint,
1021 bx: ::std::os::raw::c_uint,
1022 ) -> *mut ::std::os::raw::c_uchar;
1023}
1024unsafe extern "C" {
1025 pub fn p4ddec8(
1026 in_: *mut ::std::os::raw::c_uchar,
1027 n: ::std::os::raw::c_uint,
1028 out: *mut u8,
1029 start: u8,
1030 ) -> *mut ::std::os::raw::c_uchar;
1031}
1032unsafe extern "C" {
1033 pub fn p4ddec16(
1034 in_: *mut ::std::os::raw::c_uchar,
1035 n: ::std::os::raw::c_uint,
1036 out: *mut u16,
1037 start: u16,
1038 ) -> *mut ::std::os::raw::c_uchar;
1039}
1040unsafe extern "C" {
1041 pub fn p4ddec32(
1042 in_: *mut ::std::os::raw::c_uchar,
1043 n: ::std::os::raw::c_uint,
1044 out: *mut u32,
1045 start: u32,
1046 ) -> *mut ::std::os::raw::c_uchar;
1047}
1048unsafe extern "C" {
1049 pub fn p4ddec128v16(
1050 in_: *mut ::std::os::raw::c_uchar,
1051 n: ::std::os::raw::c_uint,
1052 out: *mut u16,
1053 start: u16,
1054 ) -> *mut ::std::os::raw::c_uchar;
1055}
1056unsafe extern "C" {
1057 pub fn p4ddec128v32(
1058 in_: *mut ::std::os::raw::c_uchar,
1059 n: ::std::os::raw::c_uint,
1060 out: *mut u32,
1061 start: u32,
1062 ) -> *mut ::std::os::raw::c_uchar;
1063}
1064unsafe extern "C" {
1065 pub fn p4ddec256v32(
1066 in_: *mut ::std::os::raw::c_uchar,
1067 n: ::std::os::raw::c_uint,
1068 out: *mut u32,
1069 start: u32,
1070 ) -> *mut ::std::os::raw::c_uchar;
1071}
1072unsafe extern "C" {
1073 pub fn p4ddec64(
1074 in_: *mut ::std::os::raw::c_uchar,
1075 n: ::std::os::raw::c_uint,
1076 out: *mut u64,
1077 start: u64,
1078 ) -> *mut ::std::os::raw::c_uchar;
1079}
1080unsafe extern "C" {
1081 pub fn _p4d1dec8(
1082 in_: *mut ::std::os::raw::c_uchar,
1083 n: ::std::os::raw::c_uint,
1084 out: *mut u8,
1085 start: u8,
1086 b: ::std::os::raw::c_uint,
1087 bx: ::std::os::raw::c_uint,
1088 ) -> *mut ::std::os::raw::c_uchar;
1089}
1090unsafe extern "C" {
1091 pub fn _p4d1dec16(
1092 in_: *mut ::std::os::raw::c_uchar,
1093 n: ::std::os::raw::c_uint,
1094 out: *mut u16,
1095 start: u16,
1096 b: ::std::os::raw::c_uint,
1097 bx: ::std::os::raw::c_uint,
1098 ) -> *mut ::std::os::raw::c_uchar;
1099}
1100unsafe extern "C" {
1101 pub fn _p4d1dec32(
1102 in_: *mut ::std::os::raw::c_uchar,
1103 n: ::std::os::raw::c_uint,
1104 out: *mut u32,
1105 start: u32,
1106 b: ::std::os::raw::c_uint,
1107 bx: ::std::os::raw::c_uint,
1108 ) -> *mut ::std::os::raw::c_uchar;
1109}
1110unsafe extern "C" {
1111 pub fn _p4d1dec128v16(
1112 in_: *mut ::std::os::raw::c_uchar,
1113 n: ::std::os::raw::c_uint,
1114 out: *mut u16,
1115 start: u16,
1116 b: ::std::os::raw::c_uint,
1117 bx: ::std::os::raw::c_uint,
1118 ) -> *mut ::std::os::raw::c_uchar;
1119}
1120unsafe extern "C" {
1121 pub fn _p4d1dec128v32(
1122 in_: *mut ::std::os::raw::c_uchar,
1123 n: ::std::os::raw::c_uint,
1124 out: *mut u32,
1125 start: u32,
1126 b: ::std::os::raw::c_uint,
1127 bx: ::std::os::raw::c_uint,
1128 ) -> *mut ::std::os::raw::c_uchar;
1129}
1130unsafe extern "C" {
1131 pub fn _p4d1dec256v32(
1132 in_: *mut ::std::os::raw::c_uchar,
1133 n: ::std::os::raw::c_uint,
1134 out: *mut u32,
1135 start: u32,
1136 b: ::std::os::raw::c_uint,
1137 bx: ::std::os::raw::c_uint,
1138 ) -> *mut ::std::os::raw::c_uchar;
1139}
1140unsafe extern "C" {
1141 pub fn _p4d1dec64(
1142 in_: *mut ::std::os::raw::c_uchar,
1143 n: ::std::os::raw::c_uint,
1144 out: *mut u64,
1145 start: u64,
1146 b: ::std::os::raw::c_uint,
1147 bx: ::std::os::raw::c_uint,
1148 ) -> *mut ::std::os::raw::c_uchar;
1149}
1150unsafe extern "C" {
1151 pub fn p4d1dec8(
1152 in_: *mut ::std::os::raw::c_uchar,
1153 n: ::std::os::raw::c_uint,
1154 out: *mut u8,
1155 start: u8,
1156 ) -> *mut ::std::os::raw::c_uchar;
1157}
1158unsafe extern "C" {
1159 pub fn p4d1dec16(
1160 in_: *mut ::std::os::raw::c_uchar,
1161 n: ::std::os::raw::c_uint,
1162 out: *mut u16,
1163 start: u16,
1164 ) -> *mut ::std::os::raw::c_uchar;
1165}
1166unsafe extern "C" {
1167 pub fn p4d1dec32(
1168 in_: *mut ::std::os::raw::c_uchar,
1169 n: ::std::os::raw::c_uint,
1170 out: *mut u32,
1171 start: u32,
1172 ) -> *mut ::std::os::raw::c_uchar;
1173}
1174unsafe extern "C" {
1175 pub fn p4d1dec128v16(
1176 in_: *mut ::std::os::raw::c_uchar,
1177 n: ::std::os::raw::c_uint,
1178 out: *mut u16,
1179 start: u16,
1180 ) -> *mut ::std::os::raw::c_uchar;
1181}
1182unsafe extern "C" {
1183 pub fn p4d1dec128v32(
1184 in_: *mut ::std::os::raw::c_uchar,
1185 n: ::std::os::raw::c_uint,
1186 out: *mut u32,
1187 start: u32,
1188 ) -> *mut ::std::os::raw::c_uchar;
1189}
1190unsafe extern "C" {
1191 pub fn p4d1dec256v32(
1192 in_: *mut ::std::os::raw::c_uchar,
1193 n: ::std::os::raw::c_uint,
1194 out: *mut u32,
1195 start: u32,
1196 ) -> *mut ::std::os::raw::c_uchar;
1197}
1198unsafe extern "C" {
1199 pub fn p4d1dec64(
1200 in_: *mut ::std::os::raw::c_uchar,
1201 n: ::std::os::raw::c_uint,
1202 out: *mut u64,
1203 start: u64,
1204 ) -> *mut ::std::os::raw::c_uchar;
1205}
1206unsafe extern "C" {
1207 pub fn _p4zdec8(
1208 in_: *mut ::std::os::raw::c_uchar,
1209 n: ::std::os::raw::c_uint,
1210 out: *mut u8,
1211 start: u8,
1212 b: ::std::os::raw::c_uint,
1213 bx: ::std::os::raw::c_uint,
1214 ) -> *mut ::std::os::raw::c_uchar;
1215}
1216unsafe extern "C" {
1217 pub fn _p4zdec16(
1218 in_: *mut ::std::os::raw::c_uchar,
1219 n: ::std::os::raw::c_uint,
1220 out: *mut u16,
1221 start: u16,
1222 b: ::std::os::raw::c_uint,
1223 bx: ::std::os::raw::c_uint,
1224 ) -> *mut ::std::os::raw::c_uchar;
1225}
1226unsafe extern "C" {
1227 pub fn _p4zdec32(
1228 in_: *mut ::std::os::raw::c_uchar,
1229 n: ::std::os::raw::c_uint,
1230 out: *mut u32,
1231 start: u32,
1232 b: ::std::os::raw::c_uint,
1233 bx: ::std::os::raw::c_uint,
1234 ) -> *mut ::std::os::raw::c_uchar;
1235}
1236unsafe extern "C" {
1237 pub fn _p4zdec128v16(
1238 in_: *mut ::std::os::raw::c_uchar,
1239 n: ::std::os::raw::c_uint,
1240 out: *mut u16,
1241 start: u16,
1242 b: ::std::os::raw::c_uint,
1243 bx: ::std::os::raw::c_uint,
1244 ) -> *mut ::std::os::raw::c_uchar;
1245}
1246unsafe extern "C" {
1247 pub fn _p4zdec128v32(
1248 in_: *mut ::std::os::raw::c_uchar,
1249 n: ::std::os::raw::c_uint,
1250 out: *mut u32,
1251 start: u32,
1252 b: ::std::os::raw::c_uint,
1253 bx: ::std::os::raw::c_uint,
1254 ) -> *mut ::std::os::raw::c_uchar;
1255}
1256unsafe extern "C" {
1257 pub fn _p4zdec256v32(
1258 in_: *mut ::std::os::raw::c_uchar,
1259 n: ::std::os::raw::c_uint,
1260 out: *mut u32,
1261 start: u32,
1262 b: ::std::os::raw::c_uint,
1263 bx: ::std::os::raw::c_uint,
1264 ) -> *mut ::std::os::raw::c_uchar;
1265}
1266unsafe extern "C" {
1267 pub fn _p4zdec64(
1268 in_: *mut ::std::os::raw::c_uchar,
1269 n: ::std::os::raw::c_uint,
1270 out: *mut u64,
1271 start: u64,
1272 b: ::std::os::raw::c_uint,
1273 bx: ::std::os::raw::c_uint,
1274 ) -> *mut ::std::os::raw::c_uchar;
1275}
1276unsafe extern "C" {
1277 pub fn p4zdec8(
1278 in_: *mut ::std::os::raw::c_uchar,
1279 n: ::std::os::raw::c_uint,
1280 out: *mut u8,
1281 start: u8,
1282 ) -> *mut ::std::os::raw::c_uchar;
1283}
1284unsafe extern "C" {
1285 pub fn p4zdec16(
1286 in_: *mut ::std::os::raw::c_uchar,
1287 n: ::std::os::raw::c_uint,
1288 out: *mut u16,
1289 start: u16,
1290 ) -> *mut ::std::os::raw::c_uchar;
1291}
1292unsafe extern "C" {
1293 pub fn p4zdec32(
1294 in_: *mut ::std::os::raw::c_uchar,
1295 n: ::std::os::raw::c_uint,
1296 out: *mut u32,
1297 start: u32,
1298 ) -> *mut ::std::os::raw::c_uchar;
1299}
1300unsafe extern "C" {
1301 pub fn p4zdec128v16(
1302 in_: *mut ::std::os::raw::c_uchar,
1303 n: ::std::os::raw::c_uint,
1304 out: *mut u16,
1305 start: u16,
1306 ) -> *mut ::std::os::raw::c_uchar;
1307}
1308unsafe extern "C" {
1309 pub fn p4zdec128v32(
1310 in_: *mut ::std::os::raw::c_uchar,
1311 n: ::std::os::raw::c_uint,
1312 out: *mut u32,
1313 start: u32,
1314 ) -> *mut ::std::os::raw::c_uchar;
1315}
1316unsafe extern "C" {
1317 pub fn p4zdec256v32(
1318 in_: *mut ::std::os::raw::c_uchar,
1319 n: ::std::os::raw::c_uint,
1320 out: *mut u32,
1321 start: u32,
1322 ) -> *mut ::std::os::raw::c_uchar;
1323}
1324unsafe extern "C" {
1325 pub fn p4zdec64(
1326 in_: *mut ::std::os::raw::c_uchar,
1327 n: ::std::os::raw::c_uint,
1328 out: *mut u64,
1329 start: u64,
1330 ) -> *mut ::std::os::raw::c_uchar;
1331}
1332unsafe extern "C" {
1333 pub fn p4nzzenc128v8(
1334 in_: *mut u8,
1335 n: usize,
1336 out: *mut ::std::os::raw::c_uchar,
1337 start: u8,
1338 ) -> usize;
1339}
1340unsafe extern "C" {
1341 pub fn p4nzzdec128v8(
1342 in_: *mut ::std::os::raw::c_uchar,
1343 n: usize,
1344 out: *mut u8,
1345 start: u8,
1346 ) -> usize;
1347}
1348unsafe extern "C" {
1349 pub fn p4nzzenc128v16(
1350 in_: *mut u16,
1351 n: usize,
1352 out: *mut ::std::os::raw::c_uchar,
1353 start: u16,
1354 ) -> usize;
1355}
1356unsafe extern "C" {
1357 pub fn p4nzzdec128v16(
1358 in_: *mut ::std::os::raw::c_uchar,
1359 n: usize,
1360 out: *mut u16,
1361 start: u16,
1362 ) -> usize;
1363}
1364unsafe extern "C" {
1365 pub fn p4nzzenc128v32(
1366 in_: *mut u32,
1367 n: usize,
1368 out: *mut ::std::os::raw::c_uchar,
1369 start: u32,
1370 ) -> usize;
1371}
1372unsafe extern "C" {
1373 pub fn p4nzzdec128v32(
1374 in_: *mut ::std::os::raw::c_uchar,
1375 n: usize,
1376 out: *mut u32,
1377 start: u32,
1378 ) -> usize;
1379}
1380unsafe extern "C" {
1381 pub fn p4nzzenc128v64(
1382 in_: *mut u64,
1383 n: usize,
1384 out: *mut ::std::os::raw::c_uchar,
1385 start: u64,
1386 ) -> usize;
1387}
1388unsafe extern "C" {
1389 pub fn p4nzzdec128v64(
1390 in_: *mut ::std::os::raw::c_uchar,
1391 n: usize,
1392 out: *mut u64,
1393 start: u64,
1394 ) -> usize;
1395}
1396unsafe extern "C" {
1397 pub fn bvzenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize;
1398}
1399unsafe extern "C" {
1400 pub fn bvzdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize;
1401}
1402unsafe extern "C" {
1403 pub fn bvzenc16(
1404 in_: *mut u16,
1405 n: usize,
1406 out: *mut ::std::os::raw::c_uchar,
1407 start: u16,
1408 ) -> usize;
1409}
1410unsafe extern "C" {
1411 pub fn bvzdec16(
1412 in_: *mut ::std::os::raw::c_uchar,
1413 n: usize,
1414 out: *mut u16,
1415 start: u16,
1416 ) -> usize;
1417}
1418unsafe extern "C" {
1419 pub fn bvzenc32(
1420 in_: *mut u32,
1421 n: usize,
1422 out: *mut ::std::os::raw::c_uchar,
1423 start: u32,
1424 ) -> usize;
1425}
1426unsafe extern "C" {
1427 pub fn bvzdec32(
1428 in_: *mut ::std::os::raw::c_uchar,
1429 n: usize,
1430 out: *mut u32,
1431 start: u32,
1432 ) -> usize;
1433}
1434unsafe extern "C" {
1435 pub fn bvzenc64(
1436 in_: *mut u64,
1437 n: usize,
1438 out: *mut ::std::os::raw::c_uchar,
1439 start: u64,
1440 ) -> usize;
1441}
1442unsafe extern "C" {
1443 pub fn bvzdec64(
1444 in_: *mut ::std::os::raw::c_uchar,
1445 n: usize,
1446 out: *mut u64,
1447 start: u64,
1448 ) -> usize;
1449}
1450unsafe extern "C" {
1451 pub fn bvzzenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize;
1452}
1453unsafe extern "C" {
1454 pub fn bvzzdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize;
1455}
1456unsafe extern "C" {
1457 pub fn bvzzenc16(
1458 in_: *mut u16,
1459 n: usize,
1460 out: *mut ::std::os::raw::c_uchar,
1461 start: u16,
1462 ) -> usize;
1463}
1464unsafe extern "C" {
1465 pub fn bvzzdec16(
1466 in_: *mut ::std::os::raw::c_uchar,
1467 n: usize,
1468 out: *mut u16,
1469 start: u16,
1470 ) -> usize;
1471}
1472unsafe extern "C" {
1473 pub fn bvzzenc32(
1474 in_: *mut u32,
1475 n: usize,
1476 out: *mut ::std::os::raw::c_uchar,
1477 start: u32,
1478 ) -> usize;
1479}
1480unsafe extern "C" {
1481 pub fn bvzzdec32(
1482 in_: *mut ::std::os::raw::c_uchar,
1483 n: usize,
1484 out: *mut u32,
1485 start: u32,
1486 ) -> usize;
1487}
1488unsafe extern "C" {
1489 pub fn bvzzenc64(
1490 in_: *mut u64,
1491 n: usize,
1492 out: *mut ::std::os::raw::c_uchar,
1493 start: u64,
1494 ) -> usize;
1495}
1496unsafe extern "C" {
1497 pub fn bvzzdec64(
1498 in_: *mut ::std::os::raw::c_uchar,
1499 n: usize,
1500 out: *mut u64,
1501 start: u64,
1502 ) -> usize;
1503}
1504unsafe extern "C" {
1505 pub fn fpgenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize;
1506}
1507unsafe extern "C" {
1508 pub fn fpgdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize;
1509}
1510unsafe extern "C" {
1511 pub fn fpgenc16(
1512 in_: *mut u16,
1513 n: usize,
1514 out: *mut ::std::os::raw::c_uchar,
1515 start: u16,
1516 ) -> usize;
1517}
1518unsafe extern "C" {
1519 pub fn fpgdec16(
1520 in_: *mut ::std::os::raw::c_uchar,
1521 n: usize,
1522 out: *mut u16,
1523 start: u16,
1524 ) -> usize;
1525}
1526unsafe extern "C" {
1527 pub fn fpgenc32(
1528 in_: *mut u32,
1529 n: usize,
1530 out: *mut ::std::os::raw::c_uchar,
1531 start: u32,
1532 ) -> usize;
1533}
1534unsafe extern "C" {
1535 pub fn fpgdec32(
1536 in_: *mut ::std::os::raw::c_uchar,
1537 n: usize,
1538 out: *mut u32,
1539 start: u32,
1540 ) -> usize;
1541}
1542unsafe extern "C" {
1543 pub fn fpgenc64(
1544 in_: *mut u64,
1545 n: usize,
1546 out: *mut ::std::os::raw::c_uchar,
1547 start: u64,
1548 ) -> usize;
1549}
1550unsafe extern "C" {
1551 pub fn fpgdec64(
1552 in_: *mut ::std::os::raw::c_uchar,
1553 n: usize,
1554 out: *mut u64,
1555 start: u64,
1556 ) -> usize;
1557}
1558unsafe extern "C" {
1559 pub fn fpxenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize;
1560}
1561unsafe extern "C" {
1562 pub fn fpxdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize;
1563}
1564unsafe extern "C" {
1565 pub fn fpxenc16(
1566 in_: *mut u16,
1567 n: usize,
1568 out: *mut ::std::os::raw::c_uchar,
1569 start: u16,
1570 ) -> usize;
1571}
1572unsafe extern "C" {
1573 pub fn fpxdec16(
1574 in_: *mut ::std::os::raw::c_uchar,
1575 n: usize,
1576 out: *mut u16,
1577 start: u16,
1578 ) -> usize;
1579}
1580unsafe extern "C" {
1581 pub fn fpxenc32(
1582 in_: *mut u32,
1583 n: usize,
1584 out: *mut ::std::os::raw::c_uchar,
1585 start: u32,
1586 ) -> usize;
1587}
1588unsafe extern "C" {
1589 pub fn fpxdec32(
1590 in_: *mut ::std::os::raw::c_uchar,
1591 n: usize,
1592 out: *mut u32,
1593 start: u32,
1594 ) -> usize;
1595}
1596unsafe extern "C" {
1597 pub fn fpxenc64(
1598 in_: *mut u64,
1599 n: usize,
1600 out: *mut ::std::os::raw::c_uchar,
1601 start: u64,
1602 ) -> usize;
1603}
1604unsafe extern "C" {
1605 pub fn fpxdec64(
1606 in_: *mut ::std::os::raw::c_uchar,
1607 n: usize,
1608 out: *mut u64,
1609 start: u64,
1610 ) -> usize;
1611}
1612unsafe extern "C" {
1613 pub fn fpfcmenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8)
1614 -> usize;
1615}
1616unsafe extern "C" {
1617 pub fn fpfcmdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8)
1618 -> usize;
1619}
1620unsafe extern "C" {
1621 pub fn fpfcmenc16(
1622 in_: *mut u16,
1623 n: usize,
1624 out: *mut ::std::os::raw::c_uchar,
1625 start: u16,
1626 ) -> usize;
1627}
1628unsafe extern "C" {
1629 pub fn fpfcmdec16(
1630 in_: *mut ::std::os::raw::c_uchar,
1631 n: usize,
1632 out: *mut u16,
1633 start: u16,
1634 ) -> usize;
1635}
1636unsafe extern "C" {
1637 pub fn fpfcmenc32(
1638 in_: *mut u32,
1639 n: usize,
1640 out: *mut ::std::os::raw::c_uchar,
1641 start: u32,
1642 ) -> usize;
1643}
1644unsafe extern "C" {
1645 pub fn fpfcmdec32(
1646 in_: *mut ::std::os::raw::c_uchar,
1647 n: usize,
1648 out: *mut u32,
1649 start: u32,
1650 ) -> usize;
1651}
1652unsafe extern "C" {
1653 pub fn fpfcmenc64(
1654 in_: *mut u64,
1655 n: usize,
1656 out: *mut ::std::os::raw::c_uchar,
1657 start: u64,
1658 ) -> usize;
1659}
1660unsafe extern "C" {
1661 pub fn fpfcmdec64(
1662 in_: *mut ::std::os::raw::c_uchar,
1663 n: usize,
1664 out: *mut u64,
1665 start: u64,
1666 ) -> usize;
1667}
1668unsafe extern "C" {
1669 pub fn fpdfcmenc8(
1670 in_: *mut u8,
1671 n: usize,
1672 out: *mut ::std::os::raw::c_uchar,
1673 start: u8,
1674 ) -> usize;
1675}
1676unsafe extern "C" {
1677 pub fn fpdfcmdec8(
1678 in_: *mut ::std::os::raw::c_uchar,
1679 n: usize,
1680 out: *mut u8,
1681 start: u8,
1682 ) -> usize;
1683}
1684unsafe extern "C" {
1685 pub fn fpdfcmenc16(
1686 in_: *mut u16,
1687 n: usize,
1688 out: *mut ::std::os::raw::c_uchar,
1689 start: u16,
1690 ) -> usize;
1691}
1692unsafe extern "C" {
1693 pub fn fpdfcmdec16(
1694 in_: *mut ::std::os::raw::c_uchar,
1695 n: usize,
1696 out: *mut u16,
1697 start: u16,
1698 ) -> usize;
1699}
1700unsafe extern "C" {
1701 pub fn fpdfcmenc32(
1702 in_: *mut u32,
1703 n: usize,
1704 out: *mut ::std::os::raw::c_uchar,
1705 start: u32,
1706 ) -> usize;
1707}
1708unsafe extern "C" {
1709 pub fn fpdfcmdec32(
1710 in_: *mut ::std::os::raw::c_uchar,
1711 n: usize,
1712 out: *mut u32,
1713 start: u32,
1714 ) -> usize;
1715}
1716unsafe extern "C" {
1717 pub fn fpdfcmenc64(
1718 in_: *mut u64,
1719 n: usize,
1720 out: *mut ::std::os::raw::c_uchar,
1721 start: u64,
1722 ) -> usize;
1723}
1724unsafe extern "C" {
1725 pub fn fpdfcmdec64(
1726 in_: *mut ::std::os::raw::c_uchar,
1727 n: usize,
1728 out: *mut u64,
1729 start: u64,
1730 ) -> usize;
1731}
1732unsafe extern "C" {
1733 pub fn fp2dfcmenc8(
1734 in_: *mut u8,
1735 n: usize,
1736 out: *mut ::std::os::raw::c_uchar,
1737 start: u8,
1738 ) -> usize;
1739}
1740unsafe extern "C" {
1741 pub fn fp2dfcmdec8(
1742 in_: *mut ::std::os::raw::c_uchar,
1743 n: usize,
1744 out: *mut u8,
1745 start: u8,
1746 ) -> usize;
1747}
1748unsafe extern "C" {
1749 pub fn fp2dfcmenc16(
1750 in_: *mut u16,
1751 n: usize,
1752 out: *mut ::std::os::raw::c_uchar,
1753 start: u16,
1754 ) -> usize;
1755}
1756unsafe extern "C" {
1757 pub fn fp2dfcmdec16(
1758 in_: *mut ::std::os::raw::c_uchar,
1759 n: usize,
1760 out: *mut u16,
1761 start: u16,
1762 ) -> usize;
1763}
1764unsafe extern "C" {
1765 pub fn fp2dfcmenc32(
1766 in_: *mut u32,
1767 n: usize,
1768 out: *mut ::std::os::raw::c_uchar,
1769 start: u32,
1770 ) -> usize;
1771}
1772unsafe extern "C" {
1773 pub fn fp2dfcmdec32(
1774 in_: *mut ::std::os::raw::c_uchar,
1775 n: usize,
1776 out: *mut u32,
1777 start: u32,
1778 ) -> usize;
1779}
1780unsafe extern "C" {
1781 pub fn fp2dfcmenc64(
1782 in_: *mut u64,
1783 n: usize,
1784 out: *mut ::std::os::raw::c_uchar,
1785 start: u64,
1786 ) -> usize;
1787}
1788unsafe extern "C" {
1789 pub fn fp2dfcmdec64(
1790 in_: *mut ::std::os::raw::c_uchar,
1791 n: usize,
1792 out: *mut u64,
1793 start: u64,
1794 ) -> usize;
1795}
1796pub type __s8 = ::std::os::raw::c_schar;
1797pub type __u8 = ::std::os::raw::c_uchar;
1798pub type __s16 = ::std::os::raw::c_short;
1799pub type __u16 = ::std::os::raw::c_ushort;
1800pub type __s32 = ::std::os::raw::c_int;
1801pub type __u32 = ::std::os::raw::c_uint;
1802pub type __s64 = ::std::os::raw::c_longlong;
1803pub type __u64 = ::std::os::raw::c_ulonglong;
1804#[repr(C)]
1805#[derive(Debug, Copy, Clone)]
1806pub struct __kernel_fd_set {
1807 pub fds_bits: [::std::os::raw::c_ulong; 16usize],
1808}
1809#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1810const _: () = {
1811 ["Size of __kernel_fd_set"][::std::mem::size_of::<__kernel_fd_set>() - 128usize];
1812 ["Alignment of __kernel_fd_set"][::std::mem::align_of::<__kernel_fd_set>() - 8usize];
1813 ["Offset of field: __kernel_fd_set::fds_bits"]
1814 [::std::mem::offset_of!(__kernel_fd_set, fds_bits) - 0usize];
1815};
1816pub type __kernel_sighandler_t =
1817 ::std::option::Option<unsafe extern "C" fn(arg1: ::std::os::raw::c_int)>;
1818pub type __kernel_key_t = ::std::os::raw::c_int;
1819pub type __kernel_mqd_t = ::std::os::raw::c_int;
1820pub type __kernel_old_uid_t = ::std::os::raw::c_ushort;
1821pub type __kernel_old_gid_t = ::std::os::raw::c_ushort;
1822pub type __kernel_long_t = ::std::os::raw::c_long;
1823pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
1824pub type __kernel_ino_t = __kernel_ulong_t;
1825pub type __kernel_mode_t = ::std::os::raw::c_uint;
1826pub type __kernel_pid_t = ::std::os::raw::c_int;
1827pub type __kernel_ipc_pid_t = ::std::os::raw::c_int;
1828pub type __kernel_uid_t = ::std::os::raw::c_uint;
1829pub type __kernel_gid_t = ::std::os::raw::c_uint;
1830pub type __kernel_suseconds_t = __kernel_long_t;
1831pub type __kernel_daddr_t = ::std::os::raw::c_int;
1832pub type __kernel_uid32_t = ::std::os::raw::c_uint;
1833pub type __kernel_gid32_t = ::std::os::raw::c_uint;
1834pub type __kernel_old_dev_t = ::std::os::raw::c_uint;
1835pub type __kernel_size_t = __kernel_ulong_t;
1836pub type __kernel_ssize_t = __kernel_long_t;
1837pub type __kernel_ptrdiff_t = __kernel_long_t;
1838#[repr(C)]
1839#[derive(Debug, Copy, Clone)]
1840pub struct __kernel_fsid_t {
1841 pub val: [::std::os::raw::c_int; 2usize],
1842}
1843#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1844const _: () = {
1845 ["Size of __kernel_fsid_t"][::std::mem::size_of::<__kernel_fsid_t>() - 8usize];
1846 ["Alignment of __kernel_fsid_t"][::std::mem::align_of::<__kernel_fsid_t>() - 4usize];
1847 ["Offset of field: __kernel_fsid_t::val"]
1848 [::std::mem::offset_of!(__kernel_fsid_t, val) - 0usize];
1849};
1850pub type __kernel_off_t = __kernel_long_t;
1851pub type __kernel_loff_t = ::std::os::raw::c_longlong;
1852pub type __kernel_old_time_t = __kernel_long_t;
1853pub type __kernel_time_t = __kernel_long_t;
1854pub type __kernel_time64_t = ::std::os::raw::c_longlong;
1855pub type __kernel_clock_t = __kernel_long_t;
1856pub type __kernel_timer_t = ::std::os::raw::c_int;
1857pub type __kernel_clockid_t = ::std::os::raw::c_int;
1858pub type __kernel_caddr_t = *mut ::std::os::raw::c_char;
1859pub type __kernel_uid16_t = ::std::os::raw::c_ushort;
1860pub type __kernel_gid16_t = ::std::os::raw::c_ushort;
1861pub type __s128 = i128;
1862pub type __u128 = u128;
1863pub type __le16 = __u16;
1864pub type __be16 = __u16;
1865pub type __le32 = __u32;
1866pub type __be32 = __u32;
1867pub type __le64 = __u64;
1868pub type __be64 = __u64;
1869pub type __sum16 = __u16;
1870pub type __wsum = __u32;
1871pub type __poll_t = ::std::os::raw::c_uint;
1872#[repr(C)]
1873#[derive(Debug, Copy, Clone)]
1874pub struct pthread_attr_t {
1875 pub flags: u32,
1876 pub stack_base: *mut ::std::os::raw::c_void,
1877 pub stack_size: usize,
1878 pub guard_size: usize,
1879 pub sched_policy: i32,
1880 pub sched_priority: i32,
1881 pub __reserved: [::std::os::raw::c_char; 16usize],
1882}
1883#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1884const _: () = {
1885 ["Size of pthread_attr_t"][::std::mem::size_of::<pthread_attr_t>() - 56usize];
1886 ["Alignment of pthread_attr_t"][::std::mem::align_of::<pthread_attr_t>() - 8usize];
1887 ["Offset of field: pthread_attr_t::flags"]
1888 [::std::mem::offset_of!(pthread_attr_t, flags) - 0usize];
1889 ["Offset of field: pthread_attr_t::stack_base"]
1890 [::std::mem::offset_of!(pthread_attr_t, stack_base) - 8usize];
1891 ["Offset of field: pthread_attr_t::stack_size"]
1892 [::std::mem::offset_of!(pthread_attr_t, stack_size) - 16usize];
1893 ["Offset of field: pthread_attr_t::guard_size"]
1894 [::std::mem::offset_of!(pthread_attr_t, guard_size) - 24usize];
1895 ["Offset of field: pthread_attr_t::sched_policy"]
1896 [::std::mem::offset_of!(pthread_attr_t, sched_policy) - 32usize];
1897 ["Offset of field: pthread_attr_t::sched_priority"]
1898 [::std::mem::offset_of!(pthread_attr_t, sched_priority) - 36usize];
1899 ["Offset of field: pthread_attr_t::__reserved"]
1900 [::std::mem::offset_of!(pthread_attr_t, __reserved) - 40usize];
1901};
1902#[repr(C)]
1903#[derive(Debug, Copy, Clone)]
1904pub struct pthread_barrier_t {
1905 pub __private: [i64; 4usize],
1906}
1907#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1908const _: () = {
1909 ["Size of pthread_barrier_t"][::std::mem::size_of::<pthread_barrier_t>() - 32usize];
1910 ["Alignment of pthread_barrier_t"][::std::mem::align_of::<pthread_barrier_t>() - 8usize];
1911 ["Offset of field: pthread_barrier_t::__private"]
1912 [::std::mem::offset_of!(pthread_barrier_t, __private) - 0usize];
1913};
1914pub type pthread_barrierattr_t = ::std::os::raw::c_int;
1915#[repr(C)]
1916#[derive(Debug, Copy, Clone)]
1917pub struct pthread_cond_t {
1918 pub __private: [i32; 12usize],
1919}
1920#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1921const _: () = {
1922 ["Size of pthread_cond_t"][::std::mem::size_of::<pthread_cond_t>() - 48usize];
1923 ["Alignment of pthread_cond_t"][::std::mem::align_of::<pthread_cond_t>() - 4usize];
1924 ["Offset of field: pthread_cond_t::__private"]
1925 [::std::mem::offset_of!(pthread_cond_t, __private) - 0usize];
1926};
1927pub type pthread_condattr_t = ::std::os::raw::c_long;
1928pub type pthread_key_t = ::std::os::raw::c_int;
1929#[repr(C)]
1930#[derive(Debug, Copy, Clone)]
1931pub struct pthread_mutex_t {
1932 pub __private: [i32; 10usize],
1933}
1934#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1935const _: () = {
1936 ["Size of pthread_mutex_t"][::std::mem::size_of::<pthread_mutex_t>() - 40usize];
1937 ["Alignment of pthread_mutex_t"][::std::mem::align_of::<pthread_mutex_t>() - 4usize];
1938 ["Offset of field: pthread_mutex_t::__private"]
1939 [::std::mem::offset_of!(pthread_mutex_t, __private) - 0usize];
1940};
1941pub type pthread_mutexattr_t = ::std::os::raw::c_long;
1942pub type pthread_once_t = ::std::os::raw::c_int;
1943#[repr(C)]
1944#[derive(Debug, Copy, Clone)]
1945pub struct pthread_rwlock_t {
1946 pub __private: [i32; 14usize],
1947}
1948#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1949const _: () = {
1950 ["Size of pthread_rwlock_t"][::std::mem::size_of::<pthread_rwlock_t>() - 56usize];
1951 ["Alignment of pthread_rwlock_t"][::std::mem::align_of::<pthread_rwlock_t>() - 4usize];
1952 ["Offset of field: pthread_rwlock_t::__private"]
1953 [::std::mem::offset_of!(pthread_rwlock_t, __private) - 0usize];
1954};
1955pub type pthread_rwlockattr_t = ::std::os::raw::c_long;
1956#[repr(C)]
1957#[derive(Debug, Copy, Clone)]
1958pub struct pthread_spinlock_t {
1959 pub __private: i64,
1960}
1961#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1962const _: () = {
1963 ["Size of pthread_spinlock_t"][::std::mem::size_of::<pthread_spinlock_t>() - 8usize];
1964 ["Alignment of pthread_spinlock_t"][::std::mem::align_of::<pthread_spinlock_t>() - 8usize];
1965 ["Offset of field: pthread_spinlock_t::__private"]
1966 [::std::mem::offset_of!(pthread_spinlock_t, __private) - 0usize];
1967};
1968pub type pthread_t = ::std::os::raw::c_long;
1969pub type __gid_t = __kernel_gid32_t;
1970pub type gid_t = __gid_t;
1971pub type __uid_t = __kernel_uid32_t;
1972pub type uid_t = __uid_t;
1973pub type __pid_t = __kernel_pid_t;
1974pub type pid_t = __pid_t;
1975pub type __id_t = u32;
1976pub type id_t = __id_t;
1977pub type blkcnt_t = ::std::os::raw::c_ulong;
1978pub type blksize_t = ::std::os::raw::c_ulong;
1979pub type caddr_t = __kernel_caddr_t;
1980pub type clock_t = __kernel_clock_t;
1981pub type __clockid_t = __kernel_clockid_t;
1982pub type clockid_t = __clockid_t;
1983pub type daddr_t = __kernel_daddr_t;
1984pub type fsblkcnt_t = ::std::os::raw::c_ulong;
1985pub type fsfilcnt_t = ::std::os::raw::c_ulong;
1986pub type __mode_t = __kernel_mode_t;
1987pub type mode_t = __mode_t;
1988pub type __key_t = __kernel_key_t;
1989pub type key_t = __key_t;
1990pub type __ino_t = __kernel_ino_t;
1991pub type ino_t = __ino_t;
1992pub type ino64_t = u64;
1993pub type __nlink_t = u32;
1994pub type nlink_t = __nlink_t;
1995pub type __timer_t = *mut ::std::os::raw::c_void;
1996pub type timer_t = __timer_t;
1997pub type __suseconds_t = __kernel_suseconds_t;
1998pub type suseconds_t = __suseconds_t;
1999pub type __useconds_t = u32;
2000pub type useconds_t = __useconds_t;
2001pub type dev_t = u64;
2002pub type __time_t = __kernel_time_t;
2003pub type time_t = __time_t;
2004pub type off_t = i64;
2005pub type loff_t = off_t;
2006pub type off64_t = loff_t;
2007pub type __socklen_t = u32;
2008pub type socklen_t = __socklen_t;
2009pub type __va_list = __BindgenOpaqueArray<u64, 4usize>;
2010pub type uint_t = ::std::os::raw::c_uint;
2011pub type uint = ::std::os::raw::c_uint;
2012pub type u_char = ::std::os::raw::c_uchar;
2013pub type u_short = ::std::os::raw::c_ushort;
2014pub type u_int = ::std::os::raw::c_uint;
2015pub type u_long = ::std::os::raw::c_ulong;
2016pub type u_int32_t = u32;
2017pub type u_int16_t = u16;
2018pub type u_int8_t = u8;
2019pub type u_int64_t = u64;
2020pub type __gnuc_va_list = __BindgenOpaqueArray<u64, 4usize>;
2021pub type va_list = __BindgenOpaqueArray<u64, 4usize>;
2022pub type fpos_t = off_t;
2023pub type fpos64_t = off64_t;
2024#[repr(C)]
2025#[derive(Debug, Copy, Clone)]
2026pub struct __sFILE {
2027 _unused: [u8; 0],
2028}
2029pub type FILE = __sFILE;
2030unsafe extern "C" {
2031 pub static mut stdin: *mut FILE;
2032}
2033unsafe extern "C" {
2034 pub static mut stdout: *mut FILE;
2035}
2036unsafe extern "C" {
2037 pub static mut stderr: *mut FILE;
2038}
2039unsafe extern "C" {
2040 pub fn clearerr(__fp: *mut FILE);
2041}
2042unsafe extern "C" {
2043 pub fn fclose(__fp: *mut FILE) -> ::std::os::raw::c_int;
2044}
2045unsafe extern "C" {
2046 pub fn feof(__fp: *mut FILE) -> ::std::os::raw::c_int;
2047}
2048unsafe extern "C" {
2049 pub fn ferror(__fp: *mut FILE) -> ::std::os::raw::c_int;
2050}
2051unsafe extern "C" {
2052 pub fn fflush(__fp: *mut FILE) -> ::std::os::raw::c_int;
2053}
2054unsafe extern "C" {
2055 pub fn fgetc(__fp: *mut FILE) -> ::std::os::raw::c_int;
2056}
2057unsafe extern "C" {
2058 pub fn fgets(
2059 __buf: *mut ::std::os::raw::c_char,
2060 __size: ::std::os::raw::c_int,
2061 __fp: *mut FILE,
2062 ) -> *mut ::std::os::raw::c_char;
2063}
2064unsafe extern "C" {
2065 pub fn fprintf(
2066 __fp: *mut FILE,
2067 __fmt: *const ::std::os::raw::c_char,
2068 ...
2069 ) -> ::std::os::raw::c_int;
2070}
2071unsafe extern "C" {
2072 pub fn fputc(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int;
2073}
2074unsafe extern "C" {
2075 pub fn fputs(__s: *const ::std::os::raw::c_char, __fp: *mut FILE) -> ::std::os::raw::c_int;
2076}
2077unsafe extern "C" {
2078 pub fn fread(
2079 __buf: *mut ::std::os::raw::c_void,
2080 __size: ::std::os::raw::c_ulong,
2081 __count: ::std::os::raw::c_ulong,
2082 __fp: *mut FILE,
2083 ) -> ::std::os::raw::c_ulong;
2084}
2085unsafe extern "C" {
2086 pub fn fscanf(
2087 __fp: *mut FILE,
2088 __fmt: *const ::std::os::raw::c_char,
2089 ...
2090 ) -> ::std::os::raw::c_int;
2091}
2092unsafe extern "C" {
2093 pub fn fwrite(
2094 __buf: *const ::std::os::raw::c_void,
2095 __size: ::std::os::raw::c_ulong,
2096 __count: ::std::os::raw::c_ulong,
2097 __fp: *mut FILE,
2098 ) -> ::std::os::raw::c_ulong;
2099}
2100unsafe extern "C" {
2101 pub fn getc(__fp: *mut FILE) -> ::std::os::raw::c_int;
2102}
2103unsafe extern "C" {
2104 pub fn getchar() -> ::std::os::raw::c_int;
2105}
2106unsafe extern "C" {
2107 pub fn getdelim(
2108 __line_ptr: *mut *mut ::std::os::raw::c_char,
2109 __line_length_ptr: *mut usize,
2110 __delimiter: ::std::os::raw::c_int,
2111 __fp: *mut FILE,
2112 ) -> isize;
2113}
2114unsafe extern "C" {
2115 pub fn getline(
2116 __line_ptr: *mut *mut ::std::os::raw::c_char,
2117 __line_length_ptr: *mut usize,
2118 __fp: *mut FILE,
2119 ) -> isize;
2120}
2121unsafe extern "C" {
2122 pub fn perror(__msg: *const ::std::os::raw::c_char);
2123}
2124unsafe extern "C" {
2125 pub fn printf(__fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
2126}
2127unsafe extern "C" {
2128 pub fn putc(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int;
2129}
2130unsafe extern "C" {
2131 pub fn putchar(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
2132}
2133unsafe extern "C" {
2134 pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
2135}
2136unsafe extern "C" {
2137 pub fn remove(__path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
2138}
2139unsafe extern "C" {
2140 pub fn rewind(__fp: *mut FILE);
2141}
2142unsafe extern "C" {
2143 pub fn scanf(__fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
2144}
2145unsafe extern "C" {
2146 pub fn setbuf(__fp: *mut FILE, __buf: *mut ::std::os::raw::c_char);
2147}
2148unsafe extern "C" {
2149 pub fn setvbuf(
2150 __fp: *mut FILE,
2151 __buf: *mut ::std::os::raw::c_char,
2152 __mode: ::std::os::raw::c_int,
2153 __size: usize,
2154 ) -> ::std::os::raw::c_int;
2155}
2156unsafe extern "C" {
2157 pub fn sscanf(
2158 __s: *const ::std::os::raw::c_char,
2159 __fmt: *const ::std::os::raw::c_char,
2160 ...
2161 ) -> ::std::os::raw::c_int;
2162}
2163unsafe extern "C" {
2164 pub fn ungetc(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int;
2165}
2166unsafe extern "C" {
2167 pub fn vfprintf(
2168 __fp: *mut FILE,
2169 __fmt: *const ::std::os::raw::c_char,
2170 __args: __BindgenOpaqueArray<u64, 4usize>,
2171 ) -> ::std::os::raw::c_int;
2172}
2173unsafe extern "C" {
2174 pub fn vprintf(
2175 __fp: *const ::std::os::raw::c_char,
2176 __args: __BindgenOpaqueArray<u64, 4usize>,
2177 ) -> ::std::os::raw::c_int;
2178}
2179unsafe extern "C" {
2180 pub fn dprintf(
2181 __fd: ::std::os::raw::c_int,
2182 __fmt: *const ::std::os::raw::c_char,
2183 ...
2184 ) -> ::std::os::raw::c_int;
2185}
2186unsafe extern "C" {
2187 pub fn vdprintf(
2188 __fd: ::std::os::raw::c_int,
2189 __fmt: *const ::std::os::raw::c_char,
2190 __args: va_list,
2191 ) -> ::std::os::raw::c_int;
2192}
2193unsafe extern "C" {
2194 pub fn sprintf(
2195 __s: *mut ::std::os::raw::c_char,
2196 __fmt: *const ::std::os::raw::c_char,
2197 ...
2198 ) -> ::std::os::raw::c_int;
2199}
2200unsafe extern "C" {
2201 pub fn vsprintf(
2202 __s: *mut ::std::os::raw::c_char,
2203 __fmt: *const ::std::os::raw::c_char,
2204 __args: __BindgenOpaqueArray<u64, 4usize>,
2205 ) -> ::std::os::raw::c_int;
2206}
2207unsafe extern "C" {
2208 pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
2209}
2210unsafe extern "C" {
2211 pub fn tempnam(
2212 __dir: *const ::std::os::raw::c_char,
2213 __prefix: *const ::std::os::raw::c_char,
2214 ) -> *mut ::std::os::raw::c_char;
2215}
2216unsafe extern "C" {
2217 pub fn rename(
2218 __old_path: *const ::std::os::raw::c_char,
2219 __new_path: *const ::std::os::raw::c_char,
2220 ) -> ::std::os::raw::c_int;
2221}
2222unsafe extern "C" {
2223 pub fn renameat(
2224 __old_dir_fd: ::std::os::raw::c_int,
2225 __old_path: *const ::std::os::raw::c_char,
2226 __new_dir_fd: ::std::os::raw::c_int,
2227 __new_path: *const ::std::os::raw::c_char,
2228 ) -> ::std::os::raw::c_int;
2229}
2230unsafe extern "C" {
2231 pub fn fseek(
2232 __fp: *mut FILE,
2233 __offset: ::std::os::raw::c_long,
2234 __whence: ::std::os::raw::c_int,
2235 ) -> ::std::os::raw::c_int;
2236}
2237unsafe extern "C" {
2238 pub fn ftell(__fp: *mut FILE) -> ::std::os::raw::c_long;
2239}
2240unsafe extern "C" {
2241 pub fn fgetpos(__fp: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
2242}
2243unsafe extern "C" {
2244 pub fn fsetpos(__fp: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
2245}
2246unsafe extern "C" {
2247 pub fn fseeko(
2248 __fp: *mut FILE,
2249 __offset: off_t,
2250 __whence: ::std::os::raw::c_int,
2251 ) -> ::std::os::raw::c_int;
2252}
2253unsafe extern "C" {
2254 pub fn ftello(__fp: *mut FILE) -> off_t;
2255}
2256unsafe extern "C" {
2257 pub fn fgetpos64(__fp: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int;
2258}
2259unsafe extern "C" {
2260 pub fn fsetpos64(__fp: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int;
2261}
2262unsafe extern "C" {
2263 pub fn fseeko64(
2264 __fp: *mut FILE,
2265 __offset: off64_t,
2266 __whence: ::std::os::raw::c_int,
2267 ) -> ::std::os::raw::c_int;
2268}
2269unsafe extern "C" {
2270 pub fn ftello64(__fp: *mut FILE) -> off64_t;
2271}
2272unsafe extern "C" {
2273 pub fn fopen(
2274 __path: *const ::std::os::raw::c_char,
2275 __mode: *const ::std::os::raw::c_char,
2276 ) -> *mut FILE;
2277}
2278unsafe extern "C" {
2279 pub fn fopen64(
2280 __path: *const ::std::os::raw::c_char,
2281 __mode: *const ::std::os::raw::c_char,
2282 ) -> *mut FILE;
2283}
2284unsafe extern "C" {
2285 pub fn freopen(
2286 __path: *const ::std::os::raw::c_char,
2287 __mode: *const ::std::os::raw::c_char,
2288 __fp: *mut FILE,
2289 ) -> *mut FILE;
2290}
2291unsafe extern "C" {
2292 pub fn freopen64(
2293 __path: *const ::std::os::raw::c_char,
2294 __mode: *const ::std::os::raw::c_char,
2295 __fp: *mut FILE,
2296 ) -> *mut FILE;
2297}
2298unsafe extern "C" {
2299 pub fn tmpfile() -> *mut FILE;
2300}
2301unsafe extern "C" {
2302 pub fn tmpfile64() -> *mut FILE;
2303}
2304unsafe extern "C" {
2305 pub fn snprintf(
2306 __buf: *mut ::std::os::raw::c_char,
2307 __size: ::std::os::raw::c_ulong,
2308 __fmt: *const ::std::os::raw::c_char,
2309 ...
2310 ) -> ::std::os::raw::c_int;
2311}
2312unsafe extern "C" {
2313 pub fn vfscanf(
2314 __fp: *mut FILE,
2315 __fmt: *const ::std::os::raw::c_char,
2316 __args: __BindgenOpaqueArray<u64, 4usize>,
2317 ) -> ::std::os::raw::c_int;
2318}
2319unsafe extern "C" {
2320 pub fn vscanf(
2321 __fmt: *const ::std::os::raw::c_char,
2322 __args: __BindgenOpaqueArray<u64, 4usize>,
2323 ) -> ::std::os::raw::c_int;
2324}
2325unsafe extern "C" {
2326 pub fn vsnprintf(
2327 __buf: *mut ::std::os::raw::c_char,
2328 __size: ::std::os::raw::c_ulong,
2329 __fmt: *const ::std::os::raw::c_char,
2330 __args: __BindgenOpaqueArray<u64, 4usize>,
2331 ) -> ::std::os::raw::c_int;
2332}
2333unsafe extern "C" {
2334 pub fn vsscanf(
2335 __s: *const ::std::os::raw::c_char,
2336 __fmt: *const ::std::os::raw::c_char,
2337 __args: __BindgenOpaqueArray<u64, 4usize>,
2338 ) -> ::std::os::raw::c_int;
2339}
2340unsafe extern "C" {
2341 pub fn ctermid(__buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
2342}
2343unsafe extern "C" {
2344 pub fn fdopen(__fd: ::std::os::raw::c_int, __mode: *const ::std::os::raw::c_char) -> *mut FILE;
2345}
2346unsafe extern "C" {
2347 pub fn fileno(__fp: *mut FILE) -> ::std::os::raw::c_int;
2348}
2349unsafe extern "C" {
2350 pub fn pclose(__fp: *mut FILE) -> ::std::os::raw::c_int;
2351}
2352unsafe extern "C" {
2353 pub fn popen(
2354 __command: *const ::std::os::raw::c_char,
2355 __mode: *const ::std::os::raw::c_char,
2356 ) -> *mut FILE;
2357}
2358unsafe extern "C" {
2359 pub fn flockfile(__fp: *mut FILE);
2360}
2361unsafe extern "C" {
2362 pub fn ftrylockfile(__fp: *mut FILE) -> ::std::os::raw::c_int;
2363}
2364unsafe extern "C" {
2365 pub fn funlockfile(__fp: *mut FILE);
2366}
2367unsafe extern "C" {
2368 pub fn getc_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int;
2369}
2370unsafe extern "C" {
2371 pub fn getchar_unlocked() -> ::std::os::raw::c_int;
2372}
2373unsafe extern "C" {
2374 pub fn putc_unlocked(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int;
2375}
2376unsafe extern "C" {
2377 pub fn putchar_unlocked(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
2378}
2379unsafe extern "C" {
2380 pub fn fmemopen(
2381 __buf: *mut ::std::os::raw::c_void,
2382 __size: usize,
2383 __mode: *const ::std::os::raw::c_char,
2384 ) -> *mut FILE;
2385}
2386unsafe extern "C" {
2387 pub fn open_memstream(
2388 __ptr: *mut *mut ::std::os::raw::c_char,
2389 __size_ptr: *mut usize,
2390 ) -> *mut FILE;
2391}
2392unsafe extern "C" {
2393 pub fn asprintf(
2394 __s_ptr: *mut *mut ::std::os::raw::c_char,
2395 __fmt: *const ::std::os::raw::c_char,
2396 ...
2397 ) -> ::std::os::raw::c_int;
2398}
2399unsafe extern "C" {
2400 pub fn fgetln(__fp: *mut FILE, __length_ptr: *mut usize) -> *mut ::std::os::raw::c_char;
2401}
2402unsafe extern "C" {
2403 pub fn fpurge(__fp: *mut FILE) -> ::std::os::raw::c_int;
2404}
2405unsafe extern "C" {
2406 pub fn setbuffer(
2407 __fp: *mut FILE,
2408 __buf: *mut ::std::os::raw::c_char,
2409 __size: ::std::os::raw::c_int,
2410 );
2411}
2412unsafe extern "C" {
2413 pub fn setlinebuf(__fp: *mut FILE) -> ::std::os::raw::c_int;
2414}
2415unsafe extern "C" {
2416 pub fn vasprintf(
2417 __s_ptr: *mut *mut ::std::os::raw::c_char,
2418 __fmt: *const ::std::os::raw::c_char,
2419 __args: va_list,
2420 ) -> ::std::os::raw::c_int;
2421}
2422unsafe extern "C" {
2423 pub fn clearerr_unlocked(__fp: *mut FILE);
2424}
2425unsafe extern "C" {
2426 pub fn feof_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int;
2427}
2428unsafe extern "C" {
2429 pub fn ferror_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int;
2430}
2431unsafe extern "C" {
2432 pub fn fileno_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int;
2433}
2434unsafe extern "C" {
2435 pub fn delta2d_decode8(length0: usize, length1: usize, chunkBuffer: *mut i8);
2436}
2437unsafe extern "C" {
2438 pub fn delta2d_encode8(length0: usize, length1: usize, chunkBuffer: *mut i8);
2439}
2440unsafe extern "C" {
2441 pub fn delta2d_decode16(length0: usize, length1: usize, chunkBuffer: *mut i16);
2442}
2443unsafe extern "C" {
2444 pub fn delta2d_encode16(length0: usize, length1: usize, chunkBuffer: *mut i16);
2445}
2446unsafe extern "C" {
2447 pub fn delta2d_decode32(length0: usize, length1: usize, chunkBuffer: *mut i32);
2448}
2449unsafe extern "C" {
2450 pub fn delta2d_encode32(length0: usize, length1: usize, chunkBuffer: *mut i32);
2451}
2452unsafe extern "C" {
2453 pub fn delta2d_decode64(length0: usize, length1: usize, chunkBuffer: *mut i64);
2454}
2455unsafe extern "C" {
2456 pub fn delta2d_encode64(length0: usize, length1: usize, chunkBuffer: *mut i64);
2457}
2458unsafe extern "C" {
2459 pub fn delta2d_encode_xor(length0: usize, length1: usize, chunkBuffer: *mut f32);
2460}
2461unsafe extern "C" {
2462 pub fn delta2d_decode_xor(length0: usize, length1: usize, chunkBuffer: *mut f32);
2463}
2464unsafe extern "C" {
2465 pub fn delta2d_encode_xor_double(length0: usize, length1: usize, chunkBuffer: *mut f64);
2466}
2467unsafe extern "C" {
2468 pub fn delta2d_decode_xor_double(length0: usize, length1: usize, chunkBuffer: *mut f64);
2469}
2470#[repr(u32)]
2471#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2472pub enum OmError_t {
2473 ERROR_OK = 0,
2474 ERROR_INVALID_COMPRESSION_TYPE = 1,
2475 ERROR_INVALID_DATA_TYPE = 2,
2476 ERROR_OUT_OF_BOUND_READ = 3,
2477 ERROR_NOT_AN_OM_FILE = 4,
2478 ERROR_DEFLATED_SIZE_MISMATCH = 5,
2479 ERROR_INVALID_DIMENSIONS = 6,
2480 ERROR_INVALID_CHUNK_DIMENSIONS = 7,
2481 ERROR_INVALID_READ_OFFSET = 8,
2482 ERROR_INVALID_READ_COUNT = 9,
2483 ERROR_INVALID_CUBE_OFFSET = 10,
2484}
2485unsafe extern "C" {
2486 pub fn om_error_string(error: OmError_t) -> *const ::std::os::raw::c_char;
2487}
2488#[repr(u32)]
2489#[doc = " Data types"]
2490#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2491pub enum OmDataType_t {
2492 DATA_TYPE_NONE = 0,
2493 DATA_TYPE_INT8 = 1,
2494 DATA_TYPE_UINT8 = 2,
2495 DATA_TYPE_INT16 = 3,
2496 DATA_TYPE_UINT16 = 4,
2497 DATA_TYPE_INT32 = 5,
2498 DATA_TYPE_UINT32 = 6,
2499 DATA_TYPE_INT64 = 7,
2500 DATA_TYPE_UINT64 = 8,
2501 DATA_TYPE_FLOAT = 9,
2502 DATA_TYPE_DOUBLE = 10,
2503 DATA_TYPE_STRING = 11,
2504 DATA_TYPE_INT8_ARRAY = 12,
2505 DATA_TYPE_UINT8_ARRAY = 13,
2506 DATA_TYPE_INT16_ARRAY = 14,
2507 DATA_TYPE_UINT16_ARRAY = 15,
2508 DATA_TYPE_INT32_ARRAY = 16,
2509 DATA_TYPE_UINT32_ARRAY = 17,
2510 DATA_TYPE_INT64_ARRAY = 18,
2511 DATA_TYPE_UINT64_ARRAY = 19,
2512 DATA_TYPE_FLOAT_ARRAY = 20,
2513 DATA_TYPE_DOUBLE_ARRAY = 21,
2514 DATA_TYPE_STRING_ARRAY = 22,
2515}
2516#[repr(u32)]
2517#[doc = " Compression types"]
2518#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2519pub enum OmCompression_t {
2520 COMPRESSION_PFOR_DELTA2D_INT16 = 0,
2521 COMPRESSION_FPX_XOR2D = 1,
2522 COMPRESSION_PFOR_DELTA2D = 2,
2523 COMPRESSION_PFOR_DELTA2D_INT16_LOGARITHMIC = 3,
2524 COMPRESSION_NONE = 4,
2525}
2526unsafe extern "C" {
2527 #[doc = " Get the number of bytes per element.\n This function will set an error if called for an invalid data type.\n It only supports array types."]
2528 pub fn om_get_bytes_per_element(data_type: OmDataType_t, error: *mut OmError_t) -> u8;
2529}
2530unsafe extern "C" {
2531 #[doc = " Get the number of bytes per element after compression.\n This function will set an error if called for an invalid data type.\n It only supports array types."]
2532 pub fn om_get_bytes_per_element_compressed(
2533 data_type: OmDataType_t,
2534 compression: OmCompression_t,
2535 error: *mut OmError_t,
2536 ) -> u8;
2537}
2538unsafe extern "C" {
2539 #[doc = " Copy 16 bit integer array and convert to float"]
2540 pub fn om_common_copy_float_to_int16(
2541 length: u64,
2542 scale_factor: f32,
2543 add_offset: f32,
2544 src: *const ::std::os::raw::c_void,
2545 dst: *mut ::std::os::raw::c_void,
2546 );
2547}
2548unsafe extern "C" {
2549 pub fn om_common_copy_float_to_int32(
2550 length: u64,
2551 scale_factor: f32,
2552 add_offset: f32,
2553 src: *const ::std::os::raw::c_void,
2554 dst: *mut ::std::os::raw::c_void,
2555 );
2556}
2557unsafe extern "C" {
2558 pub fn om_common_copy_double_to_int64(
2559 length: u64,
2560 scale_factor: f32,
2561 add_offset: f32,
2562 src: *const ::std::os::raw::c_void,
2563 dst: *mut ::std::os::raw::c_void,
2564 );
2565}
2566unsafe extern "C" {
2567 #[doc = " Copy 16 bit integer array and convert to float and scale log10"]
2568 pub fn om_common_copy_float_to_int16_log10(
2569 length: u64,
2570 scale_factor: f32,
2571 src: *const ::std::os::raw::c_void,
2572 dst: *mut ::std::os::raw::c_void,
2573 );
2574}
2575unsafe extern "C" {
2576 #[doc = " Convert int16 and scale to float"]
2577 pub fn om_common_copy_int16_to_float(
2578 length: u64,
2579 scale_factor: f32,
2580 add_offset: f32,
2581 src: *const ::std::os::raw::c_void,
2582 dst: *mut ::std::os::raw::c_void,
2583 );
2584}
2585unsafe extern "C" {
2586 pub fn om_common_copy_int32_to_float(
2587 length: u64,
2588 scale_factor: f32,
2589 add_offset: f32,
2590 src: *const ::std::os::raw::c_void,
2591 dst: *mut ::std::os::raw::c_void,
2592 );
2593}
2594unsafe extern "C" {
2595 pub fn om_common_copy_int64_to_double(
2596 length: u64,
2597 scale_factor: f32,
2598 add_offset: f32,
2599 src: *const ::std::os::raw::c_void,
2600 dst: *mut ::std::os::raw::c_void,
2601 );
2602}
2603unsafe extern "C" {
2604 #[doc = " Convert int16 and scale to float with log10"]
2605 pub fn om_common_copy_int16_to_float_log10(
2606 length: u64,
2607 scale_factor: f32,
2608 src: *const ::std::os::raw::c_void,
2609 dst: *mut ::std::os::raw::c_void,
2610 );
2611}
2612unsafe extern "C" {
2613 pub fn om_common_copy8(
2614 length: u64,
2615 src: *const ::std::os::raw::c_void,
2616 dst: *mut ::std::os::raw::c_void,
2617 );
2618}
2619unsafe extern "C" {
2620 pub fn om_common_copy16(
2621 length: u64,
2622 src: *const ::std::os::raw::c_void,
2623 dst: *mut ::std::os::raw::c_void,
2624 );
2625}
2626unsafe extern "C" {
2627 pub fn om_common_copy32(
2628 length: u64,
2629 src: *const ::std::os::raw::c_void,
2630 dst: *mut ::std::os::raw::c_void,
2631 );
2632}
2633unsafe extern "C" {
2634 pub fn om_common_copy64(
2635 length: u64,
2636 src: *const ::std::os::raw::c_void,
2637 dst: *mut ::std::os::raw::c_void,
2638 );
2639}
2640unsafe extern "C" {
2641 pub fn om_common_compress_fpxenc32(
2642 src: *const ::std::os::raw::c_void,
2643 length: u64,
2644 dst: *mut ::std::os::raw::c_void,
2645 ) -> u64;
2646}
2647unsafe extern "C" {
2648 pub fn om_common_compress_fpxenc64(
2649 src: *const ::std::os::raw::c_void,
2650 length: u64,
2651 dst: *mut ::std::os::raw::c_void,
2652 ) -> u64;
2653}
2654unsafe extern "C" {
2655 pub fn om_common_decompress_fpxdec32(
2656 src: *const ::std::os::raw::c_void,
2657 length: u64,
2658 dst: *mut ::std::os::raw::c_void,
2659 ) -> u64;
2660}
2661unsafe extern "C" {
2662 pub fn om_common_decompress_fpxdec64(
2663 src: *const ::std::os::raw::c_void,
2664 length: u64,
2665 dst: *mut ::std::os::raw::c_void,
2666 ) -> u64;
2667}
2668#[repr(u32)]
2669#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2670pub enum OmHeaderType_t {
2671 OM_HEADER_INVALID = 0,
2672 OM_HEADER_LEGACY = 1,
2673 OM_HEADER_READ_TRAILER = 2,
2674}
2675#[doc = " Legacy files only contain one 2D array with attributes in the header\n File content: Header, look-up-table, compressed data"]
2676#[repr(C)]
2677#[derive(Debug, Copy, Clone)]
2678pub struct OmHeaderV1_t {
2679 pub magic_number1: u8,
2680 pub magic_number2: u8,
2681 pub version: u8,
2682 pub compression_type: u8,
2683 pub scale_factor: f32,
2684 pub dim0: u64,
2685 pub dim1: u64,
2686 pub chunk0: u64,
2687 pub chunk1: u64,
2688}
2689#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2690const _: () = {
2691 ["Size of OmHeaderV1_t"][::std::mem::size_of::<OmHeaderV1_t>() - 40usize];
2692 ["Alignment of OmHeaderV1_t"][::std::mem::align_of::<OmHeaderV1_t>() - 8usize];
2693 ["Offset of field: OmHeaderV1_t::magic_number1"]
2694 [::std::mem::offset_of!(OmHeaderV1_t, magic_number1) - 0usize];
2695 ["Offset of field: OmHeaderV1_t::magic_number2"]
2696 [::std::mem::offset_of!(OmHeaderV1_t, magic_number2) - 1usize];
2697 ["Offset of field: OmHeaderV1_t::version"]
2698 [::std::mem::offset_of!(OmHeaderV1_t, version) - 2usize];
2699 ["Offset of field: OmHeaderV1_t::compression_type"]
2700 [::std::mem::offset_of!(OmHeaderV1_t, compression_type) - 3usize];
2701 ["Offset of field: OmHeaderV1_t::scale_factor"]
2702 [::std::mem::offset_of!(OmHeaderV1_t, scale_factor) - 4usize];
2703 ["Offset of field: OmHeaderV1_t::dim0"][::std::mem::offset_of!(OmHeaderV1_t, dim0) - 8usize];
2704 ["Offset of field: OmHeaderV1_t::dim1"][::std::mem::offset_of!(OmHeaderV1_t, dim1) - 16usize];
2705 ["Offset of field: OmHeaderV1_t::chunk0"]
2706 [::std::mem::offset_of!(OmHeaderV1_t, chunk0) - 24usize];
2707 ["Offset of field: OmHeaderV1_t::chunk1"]
2708 [::std::mem::offset_of!(OmHeaderV1_t, chunk1) - 32usize];
2709};
2710#[doc = " Newer version only contain magic number \"OM\" and the version 3"]
2711#[repr(C)]
2712#[derive(Debug, Copy, Clone)]
2713pub struct OmHeaderV3_t {
2714 pub magic_number1: u8,
2715 pub magic_number2: u8,
2716 pub version: u8,
2717}
2718#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2719const _: () = {
2720 ["Size of OmHeaderV3_t"][::std::mem::size_of::<OmHeaderV3_t>() - 3usize];
2721 ["Alignment of OmHeaderV3_t"][::std::mem::align_of::<OmHeaderV3_t>() - 1usize];
2722 ["Offset of field: OmHeaderV3_t::magic_number1"]
2723 [::std::mem::offset_of!(OmHeaderV3_t, magic_number1) - 0usize];
2724 ["Offset of field: OmHeaderV3_t::magic_number2"]
2725 [::std::mem::offset_of!(OmHeaderV3_t, magic_number2) - 1usize];
2726 ["Offset of field: OmHeaderV3_t::version"]
2727 [::std::mem::offset_of!(OmHeaderV3_t, version) - 2usize];
2728};
2729#[doc = " Trailer only present in version 3 files"]
2730#[repr(C)]
2731#[derive(Debug, Copy, Clone)]
2732pub struct OmTrailer_t {
2733 pub magic_number1: u8,
2734 pub magic_number2: u8,
2735 pub version: u8,
2736 pub reserved: u8,
2737 pub reserved2: u32,
2738 pub root_offset: u64,
2739 pub root_size: u64,
2740}
2741#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2742const _: () = {
2743 ["Size of OmTrailer_t"][::std::mem::size_of::<OmTrailer_t>() - 24usize];
2744 ["Alignment of OmTrailer_t"][::std::mem::align_of::<OmTrailer_t>() - 8usize];
2745 ["Offset of field: OmTrailer_t::magic_number1"]
2746 [::std::mem::offset_of!(OmTrailer_t, magic_number1) - 0usize];
2747 ["Offset of field: OmTrailer_t::magic_number2"]
2748 [::std::mem::offset_of!(OmTrailer_t, magic_number2) - 1usize];
2749 ["Offset of field: OmTrailer_t::version"]
2750 [::std::mem::offset_of!(OmTrailer_t, version) - 2usize];
2751 ["Offset of field: OmTrailer_t::reserved"]
2752 [::std::mem::offset_of!(OmTrailer_t, reserved) - 3usize];
2753 ["Offset of field: OmTrailer_t::reserved2"]
2754 [::std::mem::offset_of!(OmTrailer_t, reserved2) - 4usize];
2755 ["Offset of field: OmTrailer_t::root_offset"]
2756 [::std::mem::offset_of!(OmTrailer_t, root_offset) - 8usize];
2757 ["Offset of field: OmTrailer_t::root_size"]
2758 [::std::mem::offset_of!(OmTrailer_t, root_size) - 16usize];
2759};
2760unsafe extern "C" {
2761 #[doc = " Return the size in byte of the header that should be read. Always 40 byte to support legacy 2D files."]
2762 pub fn om_header_size() -> usize;
2763}
2764unsafe extern "C" {
2765 #[doc = " Size in bytes of the trailer that contains the root variable offset in newer files"]
2766 pub fn om_trailer_size() -> usize;
2767}
2768unsafe extern "C" {
2769 #[doc = " The size of a OM header for newer files. Always 3 bytes."]
2770 pub fn om_header_write_size() -> usize;
2771}
2772unsafe extern "C" {
2773 #[doc = " Check if the header is a OM file header and return if its a legacy version or a new version file"]
2774 pub fn om_header_type(src: *const ::std::os::raw::c_void) -> OmHeaderType_t;
2775}
2776unsafe extern "C" {
2777 #[doc = " Read the trailer of an OM file to get the root variable. Size is set to 0 if this is not an OM file."]
2778 pub fn om_trailer_read(
2779 src: *const ::std::os::raw::c_void,
2780 offset: *mut u64,
2781 size: *mut u64,
2782 ) -> bool;
2783}
2784unsafe extern "C" {
2785 #[doc = " Write an header for newer OM files"]
2786 pub fn om_header_write(dest: *mut ::std::os::raw::c_void);
2787}
2788unsafe extern "C" {
2789 #[doc = " Write an trailer for newer OM files including the root variable"]
2790 pub fn om_trailer_write(dest: *mut ::std::os::raw::c_void, offset: u64, size: u64);
2791}
2792#[doc = " =========== Structures describing the data layout ==============="]
2793#[repr(C)]
2794#[derive(Debug, Copy, Clone)]
2795pub struct OmVariableV3_t {
2796 pub data_type: u8,
2797 pub compression_type: u8,
2798 pub name_size: u16,
2799 pub children_count: u32,
2800}
2801#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2802const _: () = {
2803 ["Size of OmVariableV3_t"][::std::mem::size_of::<OmVariableV3_t>() - 8usize];
2804 ["Alignment of OmVariableV3_t"][::std::mem::align_of::<OmVariableV3_t>() - 4usize];
2805 ["Offset of field: OmVariableV3_t::data_type"]
2806 [::std::mem::offset_of!(OmVariableV3_t, data_type) - 0usize];
2807 ["Offset of field: OmVariableV3_t::compression_type"]
2808 [::std::mem::offset_of!(OmVariableV3_t, compression_type) - 1usize];
2809 ["Offset of field: OmVariableV3_t::name_size"]
2810 [::std::mem::offset_of!(OmVariableV3_t, name_size) - 2usize];
2811 ["Offset of field: OmVariableV3_t::children_count"]
2812 [::std::mem::offset_of!(OmVariableV3_t, children_count) - 4usize];
2813};
2814#[repr(C)]
2815#[derive(Debug, Copy, Clone)]
2816pub struct OmVariableArrayV3_t {
2817 pub data_type: u8,
2818 pub compression_type: u8,
2819 pub name_size: u16,
2820 pub children_count: u32,
2821 pub lut_size: u64,
2822 pub lut_offset: u64,
2823 pub dimension_count: u64,
2824 pub scale_factor: f32,
2825 pub add_offset: f32,
2826}
2827#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2828const _: () = {
2829 ["Size of OmVariableArrayV3_t"][::std::mem::size_of::<OmVariableArrayV3_t>() - 40usize];
2830 ["Alignment of OmVariableArrayV3_t"][::std::mem::align_of::<OmVariableArrayV3_t>() - 8usize];
2831 ["Offset of field: OmVariableArrayV3_t::data_type"]
2832 [::std::mem::offset_of!(OmVariableArrayV3_t, data_type) - 0usize];
2833 ["Offset of field: OmVariableArrayV3_t::compression_type"]
2834 [::std::mem::offset_of!(OmVariableArrayV3_t, compression_type) - 1usize];
2835 ["Offset of field: OmVariableArrayV3_t::name_size"]
2836 [::std::mem::offset_of!(OmVariableArrayV3_t, name_size) - 2usize];
2837 ["Offset of field: OmVariableArrayV3_t::children_count"]
2838 [::std::mem::offset_of!(OmVariableArrayV3_t, children_count) - 4usize];
2839 ["Offset of field: OmVariableArrayV3_t::lut_size"]
2840 [::std::mem::offset_of!(OmVariableArrayV3_t, lut_size) - 8usize];
2841 ["Offset of field: OmVariableArrayV3_t::lut_offset"]
2842 [::std::mem::offset_of!(OmVariableArrayV3_t, lut_offset) - 16usize];
2843 ["Offset of field: OmVariableArrayV3_t::dimension_count"]
2844 [::std::mem::offset_of!(OmVariableArrayV3_t, dimension_count) - 24usize];
2845 ["Offset of field: OmVariableArrayV3_t::scale_factor"]
2846 [::std::mem::offset_of!(OmVariableArrayV3_t, scale_factor) - 32usize];
2847 ["Offset of field: OmVariableArrayV3_t::add_offset"]
2848 [::std::mem::offset_of!(OmVariableArrayV3_t, add_offset) - 36usize];
2849};
2850#[doc = " only expose an opaque pointer"]
2851pub type OmVariable_t = *mut ::std::os::raw::c_void;
2852unsafe extern "C" {
2853 #[doc = " After reading data for the variable, initialize it. This is literally a simple cast to an opaque pointer. Source memory must remain accessible!"]
2854 pub fn om_variable_init(src: *const ::std::os::raw::c_void) -> *const OmVariable_t;
2855}
2856unsafe extern "C" {
2857 #[doc = " Get the name of of a given variable. No guarantee for zero termination! The length in bytes of the string is placed into `length`."]
2858 pub fn om_variable_get_name(
2859 variable: *const OmVariable_t,
2860 length: *mut u16,
2861 ) -> *const ::std::os::raw::c_char;
2862}
2863unsafe extern "C" {
2864 #[doc = " Get the type of the current variable"]
2865 pub fn om_variable_get_type(variable: *const OmVariable_t) -> OmDataType_t;
2866}
2867unsafe extern "C" {
2868 #[doc = " Get the compression type of the current variable"]
2869 pub fn om_variable_get_compression(variable: *const OmVariable_t) -> OmCompression_t;
2870}
2871unsafe extern "C" {
2872 pub fn om_variable_get_scale_factor(variable: *const OmVariable_t) -> f32;
2873}
2874unsafe extern "C" {
2875 pub fn om_variable_get_add_offset(variable: *const OmVariable_t) -> f32;
2876}
2877unsafe extern "C" {
2878 #[doc = " Get number of dimensions"]
2879 pub fn om_variable_get_dimensions_count(variable: *const OmVariable_t) -> u64;
2880}
2881unsafe extern "C" {
2882 #[doc = " Get a pointer to the dimensions of a OM variable"]
2883 pub fn om_variable_get_dimensions(variable: *const OmVariable_t) -> *const u64;
2884}
2885unsafe extern "C" {
2886 #[doc = " Get a pointer to the chunk dimensions of an OM Variable"]
2887 pub fn om_variable_get_chunks(variable: *const OmVariable_t) -> *const u64;
2888}
2889unsafe extern "C" {
2890 #[doc = " Return how many children are available for a given variable"]
2891 pub fn om_variable_get_children_count(variable: *const OmVariable_t) -> u32;
2892}
2893unsafe extern "C" {
2894 #[doc = " Get the file offset where a specified child or children can be read"]
2895 pub fn om_variable_get_children(
2896 variable: *const OmVariable_t,
2897 children_offset: u32,
2898 children_count: u32,
2899 children_offsets: *mut u64,
2900 children_sizes: *mut u64,
2901 ) -> bool;
2902}
2903unsafe extern "C" {
2904 #[doc = " Read a variable as a scalar. Returns the size and value into the value and size field. `value` needs to be a pointer that then points to the value"]
2905 pub fn om_variable_get_scalar(
2906 variable: *const OmVariable_t,
2907 value: *mut *mut ::std::os::raw::c_void,
2908 size: *mut u64,
2909 ) -> OmError_t;
2910}
2911unsafe extern "C" {
2912 #[doc = " Validate that the variable metadata is consistent with the buffer size.\n This checks that dimension arrays, chunk arrays, children arrays, and name\n all fit within the given buffer. Returns ERROR_OK if valid."]
2913 pub fn om_variable_validate(src: *const ::std::os::raw::c_void, buffer_size: u64) -> OmError_t;
2914}
2915unsafe extern "C" {
2916 #[doc = " Get the length of a scalar variable if written to a file.\n If the scalar is a string, we need to know the length of the string."]
2917 pub fn om_variable_write_scalar_size(
2918 name_size: u16,
2919 children_count: u32,
2920 data_type: OmDataType_t,
2921 string_size: u64,
2922 ) -> usize;
2923}
2924unsafe extern "C" {
2925 #[doc = " Write a scalar variable with name and children variables to a destination buffer\n\n This function supports the following data types:\n - DATA_TYPE_NONE: No value storage (passing a NULL pointer to value is allowed)\n - DATA_TYPE_INT8/UINT8: 8-bit integer value\n - DATA_TYPE_INT16/UINT16: 16-bit integer value\n - DATA_TYPE_INT32/UINT32: 32-bit integer value\n - DATA_TYPE_INT64/UINT64: 64-bit integer value\n - DATA_TYPE_FLOAT: 32-bit floating point value\n - DATA_TYPE_DOUBLE: 64-bit floating point value\n\n @param dst Destination buffer to write the variable to\n @param name_size Length of the variable name in bytes\n @param children_count Number of child variables\n @param children_offsets Array of offsets to child variables (can be NULL if children_count is 0)\n @param children_sizes Array of sizes of child variables (can be NULL if children_count is 0)\n @param name Pointer to the variable name string\n @param data_type Type of the data to be stored (see OmDataType_t)\n @param value Pointer to the value to be stored. For DATA_TYPE_NONE, this should be NULL.\n For other types, this should point to a value of the corresponding C type.\n\n @note The destination buffer must be large enough to hold the variable.\n Use om_variable_write_scalar_size() to calculate the required size."]
2926 pub fn om_variable_write_scalar(
2927 dst: *mut ::std::os::raw::c_void,
2928 name_size: u16,
2929 children_count: u32,
2930 children_offsets: *const u64,
2931 children_sizes: *const u64,
2932 name: *const ::std::os::raw::c_char,
2933 data_type: OmDataType_t,
2934 value: *const ::std::os::raw::c_void,
2935 string_size: usize,
2936 );
2937}
2938unsafe extern "C" {
2939 #[doc = " Get the size of meta attributes of a numeric array if written to a file. Does not contain any data. Only offsets for the actual data."]
2940 pub fn om_variable_write_numeric_array_size(
2941 name_size: u16,
2942 children_count: u32,
2943 dimension_count: u64,
2944 ) -> usize;
2945}
2946unsafe extern "C" {
2947 #[doc = " Write meta data for a numeric array to file"]
2948 pub fn om_variable_write_numeric_array(
2949 dst: *mut ::std::os::raw::c_void,
2950 name_size: u16,
2951 children_count: u32,
2952 children_offsets: *const u64,
2953 children_sizes: *const u64,
2954 name: *const ::std::os::raw::c_char,
2955 data_type: OmDataType_t,
2956 compression_type: OmCompression_t,
2957 scale_factor: f32,
2958 add_offset: f32,
2959 dimension_count: u64,
2960 dimensions: *const u64,
2961 chunks: *const u64,
2962 lut_size: u64,
2963 lut_offset: u64,
2964 );
2965}
2966#[repr(u32)]
2967#[doc = " Memory layout types"]
2968#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2969pub enum OmMemoryLayout_t {
2970 OM_MEMORY_LAYOUT_LEGACY = 0,
2971 OM_MEMORY_LAYOUT_ARRAY = 1,
2972 OM_MEMORY_LAYOUT_SCALAR = 3,
2973}
2974unsafe extern "C" {
2975 #[doc = " Check if a variable is legacy or version 3 array of scalar. Legacy files are the entire header containing magic number and version."]
2976 pub fn _om_variable_memory_layout(variable: *const OmVariable_t) -> OmMemoryLayout_t;
2977}
2978#[repr(C)]
2979#[derive(Debug, Copy, Clone)]
2980pub struct OmRange_t {
2981 pub lowerBound: u64,
2982 pub upperBound: u64,
2983}
2984#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2985const _: () = {
2986 ["Size of OmRange_t"][::std::mem::size_of::<OmRange_t>() - 16usize];
2987 ["Alignment of OmRange_t"][::std::mem::align_of::<OmRange_t>() - 8usize];
2988 ["Offset of field: OmRange_t::lowerBound"]
2989 [::std::mem::offset_of!(OmRange_t, lowerBound) - 0usize];
2990 ["Offset of field: OmRange_t::upperBound"]
2991 [::std::mem::offset_of!(OmRange_t, upperBound) - 8usize];
2992};
2993#[repr(C)]
2994#[derive(Debug, Copy, Clone)]
2995pub struct OmDecoder_indexRead_t {
2996 pub offset: u64,
2997 pub count: u64,
2998 pub indexRange: OmRange_t,
2999 pub chunkIndex: OmRange_t,
3000 pub nextChunk: OmRange_t,
3001}
3002#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3003const _: () = {
3004 ["Size of OmDecoder_indexRead_t"][::std::mem::size_of::<OmDecoder_indexRead_t>() - 64usize];
3005 ["Alignment of OmDecoder_indexRead_t"]
3006 [::std::mem::align_of::<OmDecoder_indexRead_t>() - 8usize];
3007 ["Offset of field: OmDecoder_indexRead_t::offset"]
3008 [::std::mem::offset_of!(OmDecoder_indexRead_t, offset) - 0usize];
3009 ["Offset of field: OmDecoder_indexRead_t::count"]
3010 [::std::mem::offset_of!(OmDecoder_indexRead_t, count) - 8usize];
3011 ["Offset of field: OmDecoder_indexRead_t::indexRange"]
3012 [::std::mem::offset_of!(OmDecoder_indexRead_t, indexRange) - 16usize];
3013 ["Offset of field: OmDecoder_indexRead_t::chunkIndex"]
3014 [::std::mem::offset_of!(OmDecoder_indexRead_t, chunkIndex) - 32usize];
3015 ["Offset of field: OmDecoder_indexRead_t::nextChunk"]
3016 [::std::mem::offset_of!(OmDecoder_indexRead_t, nextChunk) - 48usize];
3017};
3018pub type OmDecoder_dataRead_t = OmDecoder_indexRead_t;
3019#[repr(C)]
3020#[derive(Debug, Copy, Clone)]
3021pub struct OmDecoder_t {
3022 #[doc = " Number of dimensions"]
3023 pub dimensions_count: u64,
3024 #[doc = " Combine smaller IO reads to a single larger read. If consecutive reads are smaller than `io_size_merge` they might be merged. Default should be 512 bytes."]
3025 pub io_size_merge: u64,
3026 #[doc = " The maximum IO size before IO operations are split up. Default 64k. If data is in memory, this can be set higher."]
3027 pub io_size_max: u64,
3028 #[doc = " Each 64 LUT entries are compressed into a LUT chunk. The LUT chunk length returns the size in byte how large a maximum compressed size for a LUT chunk is. 0 for version 1/2 files that do not compress LUT."]
3029 pub lut_chunk_length: u64,
3030 #[doc = " The offset position where the LUT should start"]
3031 pub lut_start: u64,
3032 #[doc = " uint64_t of data chunks in this file. This value is computed in the initialisation."]
3033 pub number_of_chunks: u64,
3034 #[doc = " The dimensions of the data array. The last dimension is the \"fast\" dimension meaning the elements are sequential in memory"]
3035 pub dimensions: *const u64,
3036 #[doc = " The chunk lengths for each dimension"]
3037 pub chunks: *const u64,
3038 #[doc = " The read offset to start reading data in each dimension"]
3039 pub read_offset: *const u64,
3040 #[doc = " How many elements in each dimension to read"]
3041 pub read_count: *const u64,
3042 #[doc = " The dimensions of the target array. This can be the same as `read_count`, but it is also possible to read into a larger array"]
3043 pub cube_dimensions: *const u64,
3044 #[doc = " The offset for each dimension if data is read into a larger array."]
3045 pub cube_offset: *const u64,
3046 #[doc = " A scalefactor to convert floats to integers"]
3047 pub scale_factor: f32,
3048 #[doc = " An offset to convert floats to integers while scaling"]
3049 pub add_offset: f32,
3050 #[doc = " The data type of the data"]
3051 pub data_type: u8,
3052 #[doc = " The compression type of the data"]
3053 pub compression: u8,
3054 #[doc = " The size of the elements in bytes"]
3055 pub bytes_per_element: u8,
3056 #[doc = " The size of the elements in bytes after compression, e.g. Int16 could be used to scale floats"]
3057 pub bytes_per_element_compressed: u8,
3058}
3059#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3060const _: () = {
3061 ["Size of OmDecoder_t"][::std::mem::size_of::<OmDecoder_t>() - 112usize];
3062 ["Alignment of OmDecoder_t"][::std::mem::align_of::<OmDecoder_t>() - 8usize];
3063 ["Offset of field: OmDecoder_t::dimensions_count"]
3064 [::std::mem::offset_of!(OmDecoder_t, dimensions_count) - 0usize];
3065 ["Offset of field: OmDecoder_t::io_size_merge"]
3066 [::std::mem::offset_of!(OmDecoder_t, io_size_merge) - 8usize];
3067 ["Offset of field: OmDecoder_t::io_size_max"]
3068 [::std::mem::offset_of!(OmDecoder_t, io_size_max) - 16usize];
3069 ["Offset of field: OmDecoder_t::lut_chunk_length"]
3070 [::std::mem::offset_of!(OmDecoder_t, lut_chunk_length) - 24usize];
3071 ["Offset of field: OmDecoder_t::lut_start"]
3072 [::std::mem::offset_of!(OmDecoder_t, lut_start) - 32usize];
3073 ["Offset of field: OmDecoder_t::number_of_chunks"]
3074 [::std::mem::offset_of!(OmDecoder_t, number_of_chunks) - 40usize];
3075 ["Offset of field: OmDecoder_t::dimensions"]
3076 [::std::mem::offset_of!(OmDecoder_t, dimensions) - 48usize];
3077 ["Offset of field: OmDecoder_t::chunks"][::std::mem::offset_of!(OmDecoder_t, chunks) - 56usize];
3078 ["Offset of field: OmDecoder_t::read_offset"]
3079 [::std::mem::offset_of!(OmDecoder_t, read_offset) - 64usize];
3080 ["Offset of field: OmDecoder_t::read_count"]
3081 [::std::mem::offset_of!(OmDecoder_t, read_count) - 72usize];
3082 ["Offset of field: OmDecoder_t::cube_dimensions"]
3083 [::std::mem::offset_of!(OmDecoder_t, cube_dimensions) - 80usize];
3084 ["Offset of field: OmDecoder_t::cube_offset"]
3085 [::std::mem::offset_of!(OmDecoder_t, cube_offset) - 88usize];
3086 ["Offset of field: OmDecoder_t::scale_factor"]
3087 [::std::mem::offset_of!(OmDecoder_t, scale_factor) - 96usize];
3088 ["Offset of field: OmDecoder_t::add_offset"]
3089 [::std::mem::offset_of!(OmDecoder_t, add_offset) - 100usize];
3090 ["Offset of field: OmDecoder_t::data_type"]
3091 [::std::mem::offset_of!(OmDecoder_t, data_type) - 104usize];
3092 ["Offset of field: OmDecoder_t::compression"]
3093 [::std::mem::offset_of!(OmDecoder_t, compression) - 105usize];
3094 ["Offset of field: OmDecoder_t::bytes_per_element"]
3095 [::std::mem::offset_of!(OmDecoder_t, bytes_per_element) - 106usize];
3096 ["Offset of field: OmDecoder_t::bytes_per_element_compressed"]
3097 [::std::mem::offset_of!(OmDecoder_t, bytes_per_element_compressed) - 107usize];
3098};
3099unsafe extern "C" {
3100 #[doc = " @brief Initializes the `om_decoder_t` structure with the specified parameters.\n\n This function sets up the `om_decoder_t` instance, configuring its dimensions, chunk information,\n reading parameters, LUT (Look-Up Table) properties, and decompression methods. It prepares the\n decoder for reading and processing compressed data.\n\n @param decoder A pointer to an `om_decoder_t` structure that will be initialized.\n @param variable A pointer to the data region of the variable to read\n @param dimension_count The number of dimensions of the data (e.g., 3 for 3D data). All following array must have the some dimension count.\n @param read_offset A pointer to an array specifying the offsets for reading data in each dimension. This array sets the starting points for data reads.\n @param read_count A pointer to an array specifying the number of elements to read along each dimension. It defines how much data to read starting from `read_offset`.\n @param cube_offset A pointer to an array specifying the offset of the target cube in each dimension. This is used when reading data into a larger array.\n @param cube_dimensions A pointer to an array specifying the dimensions of the target cube being written to.It can be the same as `read_count` but allows writing into larger arrays..\n @param io_size_merge The maximum size (in bytes) for merging consecutive IO operations. It helps to optimize read performance by merging small reads.\n @param io_size_max The maximum size (in bytes) for a single IO operation before it is split. It defines the threshold for splitting large reads.\n\n @returns Return an om_error_t if the compression or dimension is invalid"]
3101 pub fn om_decoder_init(
3102 decoder: *mut OmDecoder_t,
3103 variable: *const OmVariable_t,
3104 dimension_count: u64,
3105 read_offset: *const u64,
3106 read_count: *const u64,
3107 cube_offset: *const u64,
3108 cube_dimensions: *const u64,
3109 io_size_merge: u64,
3110 io_size_max: u64,
3111 ) -> OmError_t;
3112}
3113unsafe extern "C" {
3114 #[doc = " @brief Initializes an `om_decoder_index_read_t` structure for reading chunk indices.\n\n This function calculates the starting and ending chunk indices for reading data based on\n the dimensions, chunk sizes, and read parameters provided by the `om_decoder_t` structure.\n It determines the range of chunks that need to be processed to fulfill the read request,\n setting the appropriate values in the `om_decoder_index_read_t` structure.\n\n @param decoder A pointer to a constant `om_decoder_t` structure containing information\n about the data array, chunk sizes, read offsets, and dimensions.\n @param index_read A pointer to an `om_decoder_index_read_t` structure that will be\n initialized with the computed chunk index range and other related values."]
3115 pub fn om_decoder_init_index_read(
3116 decoder: *const OmDecoder_t,
3117 indexRead: *mut OmDecoder_indexRead_t,
3118 );
3119}
3120unsafe extern "C" {
3121 #[doc = " @brief Determines the next range of chunks to be read and updates the `om_decoder_index_read_t` structure.\n\n This function calculates the next set of chunk indices that need to be read from the data, based on the\n limits set by the maximum I/O size, alignment, and the logical structure of the data. It updates the\n `om_decoder_index_read_t` structure to reflect the new range of chunks and the corresponding read parameters.\n\n @param decoder A pointer to a constant `om_decoder_t` structure containing information about the data array,\n chunk sizes, I/O constraints, and other relevant parameters.\n @param index_read A pointer to an `om_decoder_index_read_t` structure, which will be updated with the next\n range of chunks to read and the corresponding offset and size of the read operation.\n\n @returns `true` if the next read range was successfully computed and updated in `index_read`.\n `false` if there are no more chunks left to read, indicating that the end of the read range has been reached.\n"]
3122 pub fn om_decoder_next_index_read(
3123 decoder: *const OmDecoder_t,
3124 index_read: *mut OmDecoder_indexRead_t,
3125 ) -> bool;
3126}
3127unsafe extern "C" {
3128 #[doc = " @brief Initializes an `om_decoder_data_read_t` structure for data reading.\n\n This function sets the initial state of the `om_decoder_data_read_t` structure,\n preparing it for subsequent data read operations. It initializes the offset,\n count, index range, and chunk indices based on the provided index read structure.\n\n @param[out] data_read A pointer to the `om_decoder_data_read_t` structure that\n will be initialized. This structure maintains the state\n for reading data chunks.\n @param[in] index_read A pointer to the `om_decoder_index_read_t` structure that\n contains information about the index range and the initial\n chunk index to be used for reading."]
3129 pub fn om_decoder_init_data_read(
3130 data_read: *mut OmDecoder_dataRead_t,
3131 index_read: *const OmDecoder_indexRead_t,
3132 );
3133}
3134unsafe extern "C" {
3135 #[doc = " @brief Prepares the next data read operation for a given chunk of compressed data.\n\n This function advances the data reading process by calculating the start and end positions\n of the next data segment to read based on the provided index data and current state\n of the `om_decoder_data_read_t` structure. It determines how much data to read from\n the compressed data source and where the decompressed data should be written.\n\n The function supports two formats:\n 1. Version 1 format (non-compressed LUTs, where `lut_chunk_element_count` is 1).\n 2. Compressed LUT format (Version 3+).\n\n The function reads from a specified index data and updates the `data_read` structure\n with the offset and size of the next data block to be read.\n\n @param[in] decoder A pointer to the `om_decoder_t` structure, which contains\n information about the file format, compression settings,\n and LUT (look-up table) characteristics.\n @param[out] data_read A pointer to `om_decoder_data_read_t` structure that holds\n the state of the current data read operation. This structure\n is updated to reflect the next segment of data to read.\n @param[in] index_data A pointer to the index data, which provides the compressed\n offset information for each chunk in the LUT.\n @param[in] index_data_size The size of the `index_data` buffer in bytes.\n\n @returns `true` if the next data segment was successfully prepared and ready for reading,\n `false` if there are no more data segments to read or if the range is exhausted.\n\n @returns May return an out-of-bounds read error on corrupted data."]
3136 pub fn om_decoder_next_data_read(
3137 decoder: *const OmDecoder_t,
3138 dataRead: *mut OmDecoder_dataRead_t,
3139 indexData: *const ::std::os::raw::c_void,
3140 indexDataCount: u64,
3141 error: *mut OmError_t,
3142 ) -> bool;
3143}
3144unsafe extern "C" {
3145 #[doc = " @brief Calculates the size of the buffer required to read a single data chunk.\n\n This function determines the size, in bytes, of the buffer needed to read a single\n chunk of data from the compressed file, based on the chunk dimensions and the\n number of bytes per element after decompression.\n\n The calculation involves multiplying the chunk lengths across all dimensions by\n the number of bytes required to store a single element in the decompressed form.\n\n @param[in] decoder A pointer to the `om_decoder_t` structure, which holds the\n decoder configuration, including chunk sizes for each dimension,\n and the number of bytes per element.\n\n @returns The size of the buffer required to read a single chunk, in bytes.\n\n @note This buffer size is used to allocate memory when reading data chunks during\n the decoding process, ensuring that there is sufficient space to store the\n decompressed data of a chunk."]
3146 pub fn om_decoder_read_buffer_size(decoder: *const OmDecoder_t) -> u64;
3147}
3148unsafe extern "C" {
3149 #[doc = " @brief Decodes multiple data chunks from compressed input into a target buffer.\n\n This function iteratively decodes a range of chunks from the compressed input data\n using the specified decoder configuration. It processes each chunk within the provided\n range, decompressing it into a buffer and copying the decompressed data into the\n output buffer. The decoding uses an internal function `_om_decoder_decode_chunk`\n for each individual chunk.\n\n @param[in] decoder A pointer to the `om_decoder_t` structure, which defines\n the decoder configuration, including dimensions, chunk sizes,\n data type and compression type.\n @param[in] chunk An `om_range_t` structure specifying the range of chunks\n to decode. The range is defined by `chunk.lowerBound`\n (inclusive) and `chunk.upperBound` (exclusive).\n @param[in] data A pointer to the compressed data buffer from which the chunks\n are read and decoded.\n @param[in] data_size The size of the `data` buffer, in bytes. This ensures that\n the function does not read beyond the provided data size.\n @param[out] into A pointer to the output buffer where the decompressed data\n will be written. The buffer should have enough space to store\n the decompressed output.\n @param[out] chunkBuffer A temporary buffer used for storing intermediate decompressed\n chunk data before copying it into the final output buffer.\n Must be sized according to `om_decoder_read_buffer_size`\n @param[out] error May return an out-of-bounds read error on corrupted data.\n\n @returns `false` if an error occurred."]
3150 pub fn om_decoder_decode_chunks(
3151 decoder: *const OmDecoder_t,
3152 chunkIndex: OmRange_t,
3153 data: *const ::std::os::raw::c_void,
3154 dataCount: u64,
3155 into: *mut ::std::os::raw::c_void,
3156 chunkBuffer: *mut ::std::os::raw::c_void,
3157 error: *mut OmError_t,
3158 ) -> bool;
3159}
3160#[repr(C)]
3161#[derive(Debug, Copy, Clone)]
3162pub struct OmEncoder_t {
3163 pub dimensions: *const u64,
3164 pub chunks: *const u64,
3165 pub dimension_count: u64,
3166 pub scale_factor: f32,
3167 #[doc = " An offset to convert floats to integers while scaling"]
3168 pub add_offset: f32,
3169 #[doc = " The data type of the data"]
3170 pub data_type: u8,
3171 #[doc = " The compression type of the data"]
3172 pub compression: u8,
3173 #[doc = " The size of the elements in bytes"]
3174 pub bytes_per_element: u8,
3175 #[doc = " The size of the elements in bytes after compression, e.g. Int16 could be used to scale floats"]
3176 pub bytes_per_element_compressed: u8,
3177}
3178#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3179const _: () = {
3180 ["Size of OmEncoder_t"][::std::mem::size_of::<OmEncoder_t>() - 40usize];
3181 ["Alignment of OmEncoder_t"][::std::mem::align_of::<OmEncoder_t>() - 8usize];
3182 ["Offset of field: OmEncoder_t::dimensions"]
3183 [::std::mem::offset_of!(OmEncoder_t, dimensions) - 0usize];
3184 ["Offset of field: OmEncoder_t::chunks"][::std::mem::offset_of!(OmEncoder_t, chunks) - 8usize];
3185 ["Offset of field: OmEncoder_t::dimension_count"]
3186 [::std::mem::offset_of!(OmEncoder_t, dimension_count) - 16usize];
3187 ["Offset of field: OmEncoder_t::scale_factor"]
3188 [::std::mem::offset_of!(OmEncoder_t, scale_factor) - 24usize];
3189 ["Offset of field: OmEncoder_t::add_offset"]
3190 [::std::mem::offset_of!(OmEncoder_t, add_offset) - 28usize];
3191 ["Offset of field: OmEncoder_t::data_type"]
3192 [::std::mem::offset_of!(OmEncoder_t, data_type) - 32usize];
3193 ["Offset of field: OmEncoder_t::compression"]
3194 [::std::mem::offset_of!(OmEncoder_t, compression) - 33usize];
3195 ["Offset of field: OmEncoder_t::bytes_per_element"]
3196 [::std::mem::offset_of!(OmEncoder_t, bytes_per_element) - 34usize];
3197 ["Offset of field: OmEncoder_t::bytes_per_element_compressed"]
3198 [::std::mem::offset_of!(OmEncoder_t, bytes_per_element_compressed) - 35usize];
3199};
3200unsafe extern "C" {
3201 #[doc = " Initialise the OmEncoder structure with information about the shape of data\n May return an error on invalid compression or data types"]
3202 pub fn om_encoder_init(
3203 encoder: *mut OmEncoder_t,
3204 scale_factor: f32,
3205 add_offset: f32,
3206 compression: OmCompression_t,
3207 data_type: OmDataType_t,
3208 dimensions: *const u64,
3209 chunks: *const u64,
3210 dimension_count: u64,
3211 ) -> OmError_t;
3212}
3213unsafe extern "C" {
3214 #[doc = " Get the number of chunks that is calculated from dimensions and chunks"]
3215 pub fn om_encoder_count_chunks(encoder: *const OmEncoder_t) -> u64;
3216}
3217unsafe extern "C" {
3218 #[doc = " Calculate how many chunks can be filled from a given input"]
3219 pub fn om_encoder_count_chunks_in_array(
3220 encoder: *const OmEncoder_t,
3221 array_count: *const u64,
3222 ) -> u64;
3223}
3224unsafe extern "C" {
3225 #[doc = " The buffer size required to collect a single chunk of data"]
3226 pub fn om_encoder_chunk_buffer_size(encoder: *const OmEncoder_t) -> u64;
3227}
3228unsafe extern "C" {
3229 #[doc = " The buffer size required to compress a single chunk."]
3230 pub fn om_encoder_compressed_chunk_buffer_size(encoder: *const OmEncoder_t) -> u64;
3231}
3232unsafe extern "C" {
3233 #[doc = " Calculate the required buffer size for the entire compressed LUT"]
3234 pub fn om_encoder_lut_buffer_size(lookUpTable: *const u64, lookUpTableCount: u64) -> u64;
3235}
3236unsafe extern "C" {
3237 #[doc = " Compress the LUT and return the size of compressed LUT in bytes"]
3238 pub fn om_encoder_compress_lut(
3239 lookUpTable: *const u64,
3240 lookUpTableCount: u64,
3241 out: *mut u8,
3242 size_of_compressed_lut: u64,
3243 ) -> u64;
3244}
3245unsafe extern "C" {
3246 #[doc = " Compress a single chunk. Chunk buffer must be of size `OmEncoder_chunkBufferSize`"]
3247 pub fn om_encoder_compress_chunk(
3248 encoder: *const OmEncoder_t,
3249 array: *const ::std::os::raw::c_void,
3250 arrayDimensions: *const u64,
3251 arrayOffset: *const u64,
3252 arrayCount: *const u64,
3253 chunkIndex: u64,
3254 chunkIndexOffsetInThisArray: u64,
3255 out: *mut u8,
3256 chunkBuffer: *mut u8,
3257 ) -> u64;
3258}