MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::ZlibCompressParams Struct Reference
Inheritance diagram for meshlib::ZlibCompressParams:

Public Member Functions

auto assign_from_another (_other:&meshlib::ZlibCompressParams) -> &mut meshlib::ZlibCompressParams
auto level () const -> &core::ffi::c_int
auto level_mut () -> &mut core::ffi::c_int
void set_level (value:core::ffi::c_int)
auto stats () const -> *const *mut meshlib::ffi::MR_ZlibCompressStats
auto stats_mut () -> *mut *mut meshlib::ffi::MR_ZlibCompressStats
void set_stats (value:Option<&mut meshlib::ZlibCompressStats >)
auto raw_deflate () const -> &bool
auto raw_deflate_mut () -> &mut bool
void set_raw_deflate (value:bool)
auto upcast_to_zlib_params () const -> &meshlib::ZlibParams
auto upcast_to_zlib_params_mut () -> &mut meshlib::ZlibParams

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ZlibCompressParams >
static auto construct_from_another (_other:&meshlib::ZlibCompressParams) -> meshlib::Owned< meshlib::ZlibCompressParams >
static auto static_downcast_from_zlib_params (object:&meshlib::ZlibParams) -> &Self
static auto static_downcast_from_zlib_params_mut (object:&mut meshlib::ZlibParams) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

parameters for zlibCompressStream (adds a compression level on top of ZlibParams) Generated from class MR::ZlibCompressParams. Base classes: Direct: (non-virtual) MR::ZlibParams

Generated from class MR::ZlibCompressParams. Heap-allocated instances are held in Owned<ZlibCompressParams>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::ZlibCompressParams::assign_from_another ( _other:&meshlib::ZlibCompressParams ) -> &mut meshlib::ZlibCompressParams

Generated from method MR::ZlibCompressParams::operator=.

Calls MR_ZlibCompressParams_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from_another()

auto meshlib::ZlibCompressParams::construct_from_another ( _other:&meshlib::ZlibCompressParams ) -> meshlib::Owned< meshlib::ZlibCompressParams >
static

Generated from constructor MR::ZlibCompressParams::ZlibCompressParams.

Calls MR_ZlibCompressParams_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ level()

auto meshlib::ZlibCompressParams::level ( ) const -> &core::ffi::c_int

compression level: 0 = no compression, 1 = the fastest but the most inefficient, 9 = the most efficient but the slowest; -1 = zlib's default Returns a pointer to a member variable of class MR::ZlibCompressParams named level.

Calls MR_ZlibCompressParams_Get_level(). The reference to this object might be preserved as the return value.

◆ level_mut()

auto meshlib::ZlibCompressParams::level_mut ( ) -> &mut core::ffi::c_int

compression level: 0 = no compression, 1 = the fastest but the most inefficient, 9 = the most efficient but the slowest; -1 = zlib's default Returns a mutable pointer to a member variable of class MR::ZlibCompressParams named level.

Calls MR_ZlibCompressParams_GetMutable_level(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::ZlibCompressParams::new ( ) -> meshlib::Owned< meshlib::ZlibCompressParams >
static

Constructs an empty (default-constructed) instance.

Calls MR_ZlibCompressParams_DefaultConstruct().

◆ raw_deflate()

auto meshlib::ZlibCompressParams::raw_deflate ( ) const -> &bool

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Returns a pointer to a member variable of class MR::ZlibCompressParams named rawDeflate.

Calls MR_ZlibCompressParams_Get_rawDeflate(). The reference to this object might be preserved as the return value.

◆ raw_deflate_mut()

auto meshlib::ZlibCompressParams::raw_deflate_mut ( ) -> &mut bool

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Returns a mutable pointer to a member variable of class MR::ZlibCompressParams named rawDeflate.

Calls MR_ZlibCompressParams_GetMutable_rawDeflate(). The reference to this object might be preserved as the return value.

◆ set_level()

void meshlib::ZlibCompressParams::set_level ( value:core::ffi::c_int )

compression level: 0 = no compression, 1 = the fastest but the most inefficient, 9 = the most efficient but the slowest; -1 = zlib's default Modifies a member variable of class MR::ZlibCompressParams named level.

Calls MR_ZlibCompressParams_Set_level().

◆ set_raw_deflate()

void meshlib::ZlibCompressParams::set_raw_deflate ( value:bool )

wire format of the (de)compressed bytes: true → raw deflate (RFC 1951, no wrapper) — suitable for a ZIP entry; false (default) → zlib-wrapped (RFC 1950) Modifies a member variable of class MR::ZlibCompressParams named rawDeflate.

Calls MR_ZlibCompressParams_Set_rawDeflate().

◆ set_stats()

void meshlib::ZlibCompressParams::set_stats ( value:Option<&mut meshlib::ZlibCompressStats > )

optional output; if non-null, the pointed-to object is populated with CRC-32 of the input and the uncompressed / compressed byte totals Modifies a member variable of class MR::ZlibCompressParams named stats.

Calls MR_ZlibCompressParams_Set_stats(). The reference to the parameter value might be preserved in this object in element stats.

◆ static_downcast_from_zlib_params()

auto meshlib::ZlibCompressParams::static_downcast_from_zlib_params ( object:&meshlib::ZlibParams ) -> &Self
static

Static downcast from the base class MR::ZlibParams.

Calls MR_ZlibCompressParams_StaticDowncastFrom_MR_ZlibParams(). Undefined behavior if the object isn't actually a ZlibCompressParams.

Note
This function is unsafe.

◆ static_downcast_from_zlib_params_mut()

auto meshlib::ZlibCompressParams::static_downcast_from_zlib_params_mut ( object:&mut meshlib::ZlibParams ) -> &mut Self
static

Static downcast from the base class MR::ZlibParams.

Calls MR_ZlibCompressParams_MutableStaticDowncastFrom_MR_ZlibParams(). Undefined behavior if the object isn't actually a ZlibCompressParams.

Note
This function is unsafe.

◆ stats()

auto meshlib::ZlibCompressParams::stats ( ) const -> *const *mut meshlib::ffi::MR_ZlibCompressStats

optional output; if non-null, the pointed-to object is populated with CRC-32 of the input and the uncompressed / compressed byte totals Returns a pointer to a member variable of class MR::ZlibCompressParams named stats.

Calls MR_ZlibCompressParams_Get_stats(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ stats_mut()

auto meshlib::ZlibCompressParams::stats_mut ( ) -> *mut *mut meshlib::ffi::MR_ZlibCompressStats

optional output; if non-null, the pointed-to object is populated with CRC-32 of the input and the uncompressed / compressed byte totals Returns a mutable pointer to a member variable of class MR::ZlibCompressParams named stats.

Calls MR_ZlibCompressParams_GetMutable_stats(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ upcast_to_zlib_params()

auto meshlib::ZlibCompressParams::upcast_to_zlib_params ( ) const -> &meshlib::ZlibParams

Upcasts to the base class MR::ZlibParams.

Calls MR_ZlibCompressParams_UpcastTo_MR_ZlibParams().

◆ upcast_to_zlib_params_mut()

auto meshlib::ZlibCompressParams::upcast_to_zlib_params_mut ( ) -> &mut meshlib::ZlibParams

Upcasts to the base class MR::ZlibParams.

Calls MR_ZlibCompressParams_MutableUpcastTo_MR_ZlibParams().


The documentation for this struct was generated from the following file: