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