mpv_error_string method

Pointer<Int8> mpv_error_string(
  1. int error
)

Return a string describing the error. For unknown errors, the string "unknown error" is returned.

@param error error number, see enum mpv_error @return A static string describing the error. The string is completely static, i.e. doesn't need to be deallocated, and is valid forever.

Implementation

ffi.Pointer<ffi.Int8> mpv_error_string(
  int error,
) {
  return _mpv_error_string(
    error,
  );
}