mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
chore: update helio together with new mimalloc version (#3040)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
8721ca7fca
commit
5bf7e3b146
21 changed files with 45 additions and 45 deletions
|
@ -233,10 +233,10 @@ class DecompressImpl {
|
|||
}
|
||||
virtual ~DecompressImpl() {
|
||||
}
|
||||
virtual io::Result<base::IoBuf*> Decompress(std::string_view str) = 0;
|
||||
virtual io::Result<io::IoBuf*> Decompress(std::string_view str) = 0;
|
||||
|
||||
protected:
|
||||
base::IoBuf uncompressed_mem_buf_;
|
||||
io::IoBuf uncompressed_mem_buf_;
|
||||
};
|
||||
|
||||
class ZstdDecompress : public DecompressImpl {
|
||||
|
@ -248,13 +248,13 @@ class ZstdDecompress : public DecompressImpl {
|
|||
ZSTD_freeDCtx(dctx_);
|
||||
}
|
||||
|
||||
io::Result<base::IoBuf*> Decompress(std::string_view str);
|
||||
io::Result<io::IoBuf*> Decompress(std::string_view str);
|
||||
|
||||
private:
|
||||
ZSTD_DCtx* dctx_;
|
||||
};
|
||||
|
||||
io::Result<base::IoBuf*> ZstdDecompress::Decompress(std::string_view str) {
|
||||
io::Result<io::IoBuf*> ZstdDecompress::Decompress(std::string_view str) {
|
||||
// Prepare membuf memory to uncompressed string.
|
||||
auto uncomp_size = ZSTD_getFrameContentSize(str.data(), str.size());
|
||||
if (uncomp_size == ZSTD_CONTENTSIZE_UNKNOWN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue