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

Public Member Functions

auto assign_from_another (_other:&meshlib::ZlibCompressStats) -> &mut meshlib::ZlibCompressStats
auto crc32 () const -> &core::ffi::c_uint
auto crc32_mut () -> &mut core::ffi::c_uint
void set_crc32 (value:core::ffi::c_uint)
auto uncompressed_size () const -> &usize
auto uncompressed_size_mut () -> &mut usize
void set_uncompressed_size (value:usize)
auto compressed_size () const -> &usize
auto compressed_size_mut () -> &mut usize
void set_compressed_size (value:usize)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ZlibCompressStats >
static auto construct_from (crc32:core::ffi::c_uint, uncompressedSize:usize, compressedSize:usize) -> meshlib::Owned< meshlib::ZlibCompressStats >
static auto construct_from_another (_other:&meshlib::ZlibCompressStats) -> meshlib::Owned< meshlib::ZlibCompressStats >
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

statistics gathered during compression: CRC-32 of the uncompressed input and the total numbers of bytes read from / written to the streams Generated from class MR::ZlibCompressStats.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ compressed_size()

auto meshlib::ZlibCompressStats::compressed_size ( ) const -> &usize

< total bytes written to the output stream Returns a pointer to a member variable of class MR::ZlibCompressStats named compressedSize.

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

◆ compressed_size_mut()

auto meshlib::ZlibCompressStats::compressed_size_mut ( ) -> &mut usize

< total bytes written to the output stream Returns a mutable pointer to a member variable of class MR::ZlibCompressStats named compressedSize.

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

◆ construct_from()

auto meshlib::ZlibCompressStats::construct_from ( crc32:core::ffi::c_uint ,
uncompressedSize:usize ,
compressedSize:usize  ) -> meshlib::Owned< meshlib::ZlibCompressStats >
static

Constructs MR::ZlibCompressStats elementwise.

Calls MR_ZlibCompressStats_ConstructFrom(). The reference to the parameter crc32 might be preserved in the constructed object. The reference to the parameter uncompressedSize might be preserved in the constructed object. The reference to the parameter compressedSize might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ZlibCompressStats::ZlibCompressStats.

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

◆ crc32()

auto meshlib::ZlibCompressStats::crc32 ( ) const -> &core::ffi::c_uint

< CRC-32 of the uncompressed input Returns a pointer to a member variable of class MR::ZlibCompressStats named crc32.

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

◆ crc32_mut()

auto meshlib::ZlibCompressStats::crc32_mut ( ) -> &mut core::ffi::c_uint

< CRC-32 of the uncompressed input Returns a mutable pointer to a member variable of class MR::ZlibCompressStats named crc32.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ZlibCompressStats_DefaultConstruct().

◆ set_compressed_size()

void meshlib::ZlibCompressStats::set_compressed_size ( value:usize )

< total bytes written to the output stream Modifies a member variable of class MR::ZlibCompressStats named compressedSize.

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

◆ set_crc32()

void meshlib::ZlibCompressStats::set_crc32 ( value:core::ffi::c_uint )

< CRC-32 of the uncompressed input Modifies a member variable of class MR::ZlibCompressStats named crc32.

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

◆ set_uncompressed_size()

void meshlib::ZlibCompressStats::set_uncompressed_size ( value:usize )

< total bytes read from the input stream Modifies a member variable of class MR::ZlibCompressStats named uncompressedSize.

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

◆ uncompressed_size()

auto meshlib::ZlibCompressStats::uncompressed_size ( ) const -> &usize

< total bytes read from the input stream Returns a pointer to a member variable of class MR::ZlibCompressStats named uncompressedSize.

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

◆ uncompressed_size_mut()

auto meshlib::ZlibCompressStats::uncompressed_size_mut ( ) -> &mut usize

< total bytes read from the input stream Returns a mutable pointer to a member variable of class MR::ZlibCompressStats named uncompressedSize.

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


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