Lunchbox  1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lunchbox::CompressorResult Struct Reference

A structure to hold the results from one compress operation. More...

#include <compressorResult.h>

+ Collaboration diagram for lunchbox::CompressorResult:

Public Member Functions

 CompressorResult (const unsigned n, const CompressorChunks &c)
 
uint64_t getSize () const
 
bool isCompressed () const
 

Public Attributes

unsigned compressor
 
CompressorChunks chunks
 

Detailed Description

A structure to hold the results from one compress operation.

Valid as long as the associated Compressor is valid and has not been used again.

Definition at line 34 of file compressorResult.h.

Member Function Documentation

uint64_t lunchbox::CompressorResult::getSize ( ) const
inline
Returns
the aggregate size of all chunks
Version
1.9.1

Definition at line 41 of file compressorResult.h.

References lunchbox::Array< T >::getNumBytes().

+ Here is the call graph for this function:

bool lunchbox::CompressorResult::isCompressed ( ) const
inline
Returns
true if the result contains compressed data.
Version
1.9.1

Definition at line 50 of file compressorResult.h.

References EQ_COMPRESSOR_AUTO, EQ_COMPRESSOR_INVALID, and EQ_COMPRESSOR_NONE.


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