libSBML C++ API  5.20.4
CompressionUtil.cpp File Reference

Functions useful for various compression algorithms. More...

Include dependency graph for CompressionUtil.cpp:

Functions

std::string arrayToString (const double *array, size_t length)
 
std::string arrayToString (const unsigned char *array, size_t length)
 
std::string charIntsToString (const int *array, size_t length)
 
int compress_data (void *data, size_t length, int level, unsigned char *&result, int &outLength)
 
void copySampleArrays (double *&target, size_t &targetLength, double *source, size_t sourceLength)
 
void copySampleArrays (int *&target, size_t &targetLength, int *source, size_t sourceLength)
 
void copySampleArrays (int *&target, size_t &targetLength, unsigned char *source, size_t sourceLength)
 
void uncompress_data (void *data, size_t length, double *&result, size_t &outLength)
 
void uncompress_data (void *data, size_t length, int *&result, size_t &outLength)
 
std::string vectorToString (const std::vector< double > &vec)
 

Detailed Description

Functions useful for various compression algorithms.

Author
SBMLTeam

Function Documentation

◆ arrayToString() [1/2]

std::string arrayToString ( const double *  array,
size_t  length 
)

◆ arrayToString() [2/2]

std::string arrayToString ( const unsigned char *  array,
size_t  length 
)

◆ charIntsToString()

std::string charIntsToString ( const int *  array,
size_t  length 
)

◆ compress_data()

int compress_data ( void *  data,
size_t  length,
int  level,
unsigned char *&  result,
int &  outLength 
)

◆ copySampleArrays() [1/3]

void copySampleArrays ( double *&  target,
size_t &  targetLength,
double *  source,
size_t  sourceLength 
)

◆ copySampleArrays() [2/3]

void copySampleArrays ( int *&  target,
size_t &  targetLength,
int *  source,
size_t  sourceLength 
)

◆ copySampleArrays() [3/3]

void copySampleArrays ( int *&  target,
size_t &  targetLength,
unsigned char *  source,
size_t  sourceLength 
)

◆ uncompress_data() [1/2]

void uncompress_data ( void *  data,
size_t  length,
double *&  result,
size_t &  outLength 
)

◆ uncompress_data() [2/2]

void uncompress_data ( void *  data,
size_t  length,
int *&  result,
size_t &  outLength 
)

◆ vectorToString()

std::string vectorToString ( const std::vector< double > &  vec)