ZstdException if result is an error.void checkError(size_t result, string context = "")Throws a ZstdException if the result code is a ZSTD error.
result | The return value from a ZSTD function. |
context | Optional context string for the error message. |
ZstdException if result is an error.