pub unsafe extern "C" fn ZL_CompressorDeserializer_getErrorContextString_fromError(
deserializer: *const ZL_CompressorDeserializer,
error: ZL_Error,
) -> *const c_charExpand description
Like @ref ZL_CompressorDeserializer_getErrorContextString(), but generic across result types. Use like:
ZL_RESULT_OF(Something) result = ...;
const char* msg = ZL_CompressorDeserializer_getErrorContextString_fromError(
deserializer, ZL_RES_error(result));@returns the verbose error message associated with the @p error or NULL
if the error is no longer valid.
@note This string is stored within the @p deserializer and is only valid for the lifetime of the @p deserializer.