[llvm] [llvm] Add API to get decompressed size of a zstd compressed buffer. (PR #107020)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 22:22:13 PDT 2024
================
@@ -224,6 +224,20 @@ Error zstd::decompress(ArrayRef<uint8_t> Input,
return E;
}
+Error zstd::getDecompressedSize(ArrayRef<uint8_t> Input,
----------------
MaskRay wrote:
more conventional to return `Expected<uint64_t>` and avoid output parameter
https://github.com/llvm/llvm-project/pull/107020
More information about the llvm-commits
mailing list