forked from reitermarkus/rust-bindgen
/
duplicated-definition-count.rs
67 lines (66 loc) · 1.63 KB
/
duplicated-definition-count.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#![allow(
dead_code,
non_snake_case,
non_camel_case_types,
non_upper_case_globals
)]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct BitStream {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_BitStream() {
assert_eq!(
::std::mem::size_of::<BitStream>(),
1usize,
concat!("Size of: ", stringify!(BitStream))
);
assert_eq!(
::std::mem::align_of::<BitStream>(),
1usize,
concat!("Alignment of ", stringify!(BitStream))
);
}
extern "C" {
#[link_name = "\u{1}_ZN9BitStream5WriteEPKcj"]
pub fn BitStream_Write(
this: *mut BitStream,
inputByteArray: *const ::std::os::raw::c_char,
numberOfBytes: ::std::os::raw::c_uint,
);
}
extern "C" {
#[link_name = "\u{1}_ZN9BitStream5WriteEPS_j"]
pub fn BitStream_Write1(
this: *mut BitStream,
bitStream: *mut BitStream,
numberOfBits: ::std::os::raw::c_uint,
);
}
extern "C" {
#[link_name = "\u{1}_ZN9BitStream6Write1Ev"]
pub fn BitStream_Write11(this: *mut BitStream);
}
impl BitStream {
#[inline]
pub unsafe fn Write(
&mut self,
inputByteArray: *const ::std::os::raw::c_char,
numberOfBytes: ::std::os::raw::c_uint,
) {
unsafe { BitStream_Write(self, inputByteArray, numberOfBytes) }
}
#[inline]
pub unsafe fn Write1(
&mut self,
bitStream: *mut BitStream,
numberOfBits: ::std::os::raw::c_uint,
) {
unsafe { BitStream_Write1(self, bitStream, numberOfBits) }
}
#[inline]
pub unsafe fn Write11(&mut self) {
unsafe { BitStream_Write11(self) }
}
}