Class BloscCompressor

class BloscCompressor

Public Functions

size_t getScratchSpaceSize(const size_t len) const
int64_t compress(const uint8_t *buffer, const size_t buffer_size, uint8_t *compressed_buffer, const size_t compressed_buffer_size, const size_t min_compressor_bytes)
std::string compress(const std::string &buffer)
size_t decompress(const uint8_t *compressed_buffer, uint8_t *decompressed_buffer, const size_t decompressed_size)
std::string decompress(const std::string &buffer, const size_t decompressed_size)
size_t compressOrMemcpy(const uint8_t *input_buffer, uint8_t *output_buffer, const size_t uncompressed_size, const size_t min_compressor_bytes)
bool decompressOrMemcpy(const uint8_t *compressed_buffer, const size_t compressed_buffer_size, uint8_t *decompressed_buffer, const size_t decompressed_size)
void getBloscBufferSizes(const uint8_t *data_ptr, size_t *num_bytes_compressed, size_t *num_bytes_uncompressed, size_t *block_size)
int setThreads(size_t num_threads)
int setCompressor(std::string &compressor)
~BloscCompressor()

Public Static Functions

BloscCompressor *getCompressor()

Private Functions

BloscCompressor()

Private Members

std::mutex compressor_lock

Private Static Attributes

BloscCompressor *instance = NULL