pub unsafe extern "C" fn ZL_CompressorSerializer_getErrorContextString_fromError(
deserializer: *const ZL_CompressorSerializer,
error: ZL_Error,
) -> *const c_charExpand description
Like @ref ZL_CompressorSerializer_getErrorContextString(), but generic across result types. Use like:
ZL_RESULT_OF(Something) result = ...;
const char* msg = ZL_CompressorSerializer_getErrorContextString_fromError(
serializer, 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 serializer and is only valid for the lifetime of the @p serializer.