ZSTD_getDecompressedSize method

int ZSTD_getDecompressedSize(
  1. Pointer<Void> src,
  2. int srcSize
)

! ZSTD_getDecompressedSize() : NOTE: This function is now obsolete, in favor of ZSTD_getFrameContentSize(). Both functions work the same way, but ZSTD_getDecompressedSize() blends "empty", "unknown" and "error" results to the same return value (0), while ZSTD_getFrameContentSize() gives them separate return values. @return : decompressed size of src frame content if known and not empty, 0 otherwise.

Implementation

int ZSTD_getDecompressedSize(
    ffi.Pointer<ffi.Void> src,
    int srcSize,
    ) {
  return _ZSTD_getDecompressedSize(
    src,
    srcSize,
  );
}