isLzmaError

fnbool isLzmaError(lzma_ret code) @safe @nogc nothrow

Returns true if the given lzma_ret value represents an error.

The informational return codes (LZMA_OK, LZMA_STREAM_END, LZMA_NO_CHECK, LZMA_UNSUPPORTED_CHECK, LZMA_GET_CHECK) are treated as success.

Parameters

codeThe return value from a liblzma function.

Returns

true if code is an error, false otherwise.