checkError

fnvoid checkError(size_t result, string context = "")

Throws a ZstdException if the result code is a ZSTD error.

Parameters

resultThe return value from a ZSTD function.
contextOptional context string for the error message.

Throws

ZstdException if result is an error.