47 return static_cast<size_t>(len * 1.1);
52 int64_t
compress(
const uint8_t* buffer,
53 const size_t buffer_size,
54 uint8_t* compressed_buffer,
55 const size_t compressed_buffer_size,
56 const size_t min_compressor_bytes);
57 std::string
compress(
const std::string& buffer);
59 size_t decompress(
const uint8_t* compressed_buffer,
60 uint8_t* decompressed_buffer,
61 const size_t decompressed_size);
62 std::string
decompress(
const std::string& buffer,
const size_t decompressed_size);
65 uint8_t* output_buffer,
66 const size_t uncompressed_size,
67 const size_t min_compressor_bytes);
70 const size_t compressed_buffer_size,
71 uint8_t* decompressed_buffer,
72 const size_t decompressed_size);
75 size_t* num_bytes_compressed,
76 size_t* num_bytes_uncompressed,
int setThreads(size_t num_threads)
size_t decompress(const uint8_t *compressed_buffer, uint8_t *decompressed_buffer, const size_t decompressed_size)
size_t getScratchSpaceSize(const size_t len) const
int setCompressor(std::string &compressor)
size_t compressOrMemcpy(const uint8_t *input_buffer, uint8_t *output_buffer, const size_t uncompressed_size, const size_t min_compressor_bytes)
std::mutex compressor_lock
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)
static BloscCompressor * getCompressor()
CompressionFailedError(const std::string &e)
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)
static BloscCompressor * instance