| 1 | use superrust-analyzer cargo lzzzz 2.0.0 lz4f/::{FrameInforust-analyzer cargo lzzzz 2.0.0 lz4f/frame_info/FrameInfo#, Preferencesrust-analyzer cargo lzzzz 2.0.0 lz4f/preferences/Preferences#}; |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::osrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/::rawrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/::{c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#, c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#}; |
| 3 | |
| 4 | #[allow(non_camel_case_types)] |
| 5 | type size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t# = usize; |
| 6 | |
| 7 | #[repr(C)] |
| 8 | pub struct LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx# { |
| 9 | _privaterust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#_private.: [u8; 0], |
| 10 | } |
| 11 | |
| 12 | #[repr(C)] |
| 13 | pub struct LZ4FDecompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx# { |
| 14 | _privaterust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx#_private.: [u8; 0], |
| 15 | } |
| 16 | |
| 17 | #[repr(C)] |
| 18 | pub struct LZ4FCompressionDictrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionDict# { |
| 19 | _privaterust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionDict#_private.: [u8; 0], |
| 20 | } |
| 21 | |
| 22 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 23 | #[repr(C)] |
| 24 | pub struct LZ4FCompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions# { |
| 25 | pub stable_srcrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions#stable_src.: c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#, |
| 26 | pub _reservedrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions#_reserved.: [c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#; 3], |
| 27 | } |
| 28 | |
| 29 | impl LZ4FCompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions# { |
| 30 | pub fn stablerust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FCompressionOptions]stable().(stable: bool) -> Selfrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FCompressionOptions] { |
| 31 | Selfrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FCompressionOptions] { |
| 32 | stable_srcrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions#stable_src.: u32::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u32][`From<bool>`]from().(stable), |
| 33 | ..Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default#::defaultrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FCompressionOptions][Default]default().() |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 39 | #[repr(C)] |
| 40 | pub struct LZ4FDecompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionOptions# { |
| 41 | pub stable_dstrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionOptions#stable_dst.: c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#, |
| 42 | pub _reservedrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionOptions#_reserved.: [c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#; 3], |
| 43 | } |
| 44 | |
| 45 | impl LZ4FDecompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionOptions# { |
| 46 | pub fn stablerust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FDecompressionOptions]stable().(stable: bool) -> Selfrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FDecompressionOptions] { |
| 47 | Selfrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FDecompressionOptions] { |
| 48 | stable_dstrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionOptions#stable_dst.: u32::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u32][`From<bool>`]from().(stable), |
| 49 | ..Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default#::defaultrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/impl#[LZ4FDecompressionOptions][Default]default().() |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | extern "C" { |
| 55 | pub fn LZ4F_getVersionrust-analyzer cargo lzzzz 2.0.0 LZ4F_getVersion().() -> c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#; |
| 56 | pub fn LZ4F_compressBoundrust-analyzer cargo lzzzz 2.0.0 LZ4F_compressBound().(src_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, prefs: *const Preferencesrust-analyzer cargo lzzzz 2.0.0 lz4f/preferences/Preferences#) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 57 | pub fn LZ4F_compressFrameBoundrust-analyzer cargo lzzzz 2.0.0 LZ4F_compressFrameBound().(src_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, prefs: *const Preferencesrust-analyzer cargo lzzzz 2.0.0 lz4f/preferences/Preferences#) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 58 | pub fn LZ4F_compressFramerust-analyzer cargo lzzzz 2.0.0 LZ4F_compressFrame().( |
| 59 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 60 | dst_capacity: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 61 | src_buffer: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 62 | src_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 63 | prefs: *const Preferencesrust-analyzer cargo lzzzz 2.0.0 lz4f/preferences/Preferences#, |
| 64 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 65 | pub fn LZ4F_decompress_usingDictrust-analyzer cargo lzzzz 2.0.0 LZ4F_decompress_usingDict().( |
| 66 | ctx: *mut LZ4FDecompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx#, |
| 67 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 68 | dst_size_ptr: *mut size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 69 | src_buffer: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 70 | src_size_ptr: *mut size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 71 | dict: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 72 | dict_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 73 | opt: *const LZ4FDecompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionOptions#, |
| 74 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 75 | pub fn LZ4F_createCDictrust-analyzer cargo lzzzz 2.0.0 LZ4F_createCDict().( |
| 76 | dict_buffer: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 77 | dict_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 78 | ) -> *mut LZ4FCompressionDictrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionDict#; |
| 79 | pub fn LZ4F_freeCDictrust-analyzer cargo lzzzz 2.0.0 LZ4F_freeCDict().(dict: *mut LZ4FCompressionDictrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionDict#); |
| 80 | |
| 81 | pub fn LZ4F_createCompressionContextrust-analyzer cargo lzzzz 2.0.0 LZ4F_createCompressionContext().( |
| 82 | ctx: *mut *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#, |
| 83 | version: c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#, |
| 84 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 85 | pub fn LZ4F_freeCompressionContextrust-analyzer cargo lzzzz 2.0.0 LZ4F_freeCompressionContext().(ctx: *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#); |
| 86 | pub fn LZ4F_compressBeginrust-analyzer cargo lzzzz 2.0.0 LZ4F_compressBegin().( |
| 87 | ctx: *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#, |
| 88 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 89 | dst_capacity: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 90 | prefs: *const Preferencesrust-analyzer cargo lzzzz 2.0.0 lz4f/preferences/Preferences#, |
| 91 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 92 | pub fn LZ4F_compressBegin_usingCDictrust-analyzer cargo lzzzz 2.0.0 LZ4F_compressBegin_usingCDict().( |
| 93 | ctx: *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#, |
| 94 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 95 | dst_capacity: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 96 | dist: *const LZ4FCompressionDictrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionDict#, |
| 97 | prefs: *const Preferencesrust-analyzer cargo lzzzz 2.0.0 lz4f/preferences/Preferences#, |
| 98 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 99 | pub fn LZ4F_compressUpdaterust-analyzer cargo lzzzz 2.0.0 LZ4F_compressUpdate().( |
| 100 | ctx: *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#, |
| 101 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 102 | dst_capacity: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 103 | src_buffer: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 104 | src_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 105 | opt: *const LZ4FCompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions#, |
| 106 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 107 | pub fn LZ4F_flushrust-analyzer cargo lzzzz 2.0.0 LZ4F_flush().( |
| 108 | ctx: *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#, |
| 109 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 110 | dst_capacity: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 111 | opt: *const LZ4FCompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions#, |
| 112 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 113 | pub fn LZ4F_compressEndrust-analyzer cargo lzzzz 2.0.0 LZ4F_compressEnd().( |
| 114 | ctx: *mut LZ4FCompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionCtx#, |
| 115 | dst_buffer: *mut c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 116 | dst_capacity: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 117 | opt: *const LZ4FCompressionOptionsrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FCompressionOptions#, |
| 118 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 119 | pub fn LZ4F_createDecompressionContextrust-analyzer cargo lzzzz 2.0.0 LZ4F_createDecompressionContext().( |
| 120 | ctx: *mut *mut LZ4FDecompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx#, |
| 121 | version: c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#, |
| 122 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 123 | pub fn LZ4F_freeDecompressionContextrust-analyzer cargo lzzzz 2.0.0 LZ4F_freeDecompressionContext().(ctx: *mut LZ4FDecompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx#) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 124 | pub fn LZ4F_resetDecompressionContextrust-analyzer cargo lzzzz 2.0.0 LZ4F_resetDecompressionContext().(ctx: *mut LZ4FDecompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx#); |
| 125 | pub fn LZ4F_headerSizerust-analyzer cargo lzzzz 2.0.0 LZ4F_headerSize().(src: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, src_size: size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 126 | pub fn LZ4F_getFrameInforust-analyzer cargo lzzzz 2.0.0 LZ4F_getFrameInfo().( |
| 127 | ctx: *mut LZ4FDecompressionCtxrust-analyzer cargo lzzzz 2.0.0 lz4f/binding/LZ4FDecompressionCtx#, |
| 128 | frame_info_ptr: *mut FrameInforust-analyzer cargo lzzzz 2.0.0 lz4f/frame_info/FrameInfo#, |
| 129 | src_buffer: *const c_voidrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_void#, |
| 130 | src_size_ptr: *mut size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#, |
| 131 | ) -> size_trust-analyzer cargo lzzzz 2.0.0 lz4f/binding/size_t#; |
| 132 | } |