public static extern IntPtr uc_strerror(UnicornError err);
public string StrError(UnicornError err) => Marshal.PtrToStringAnsi(uc_strerror((uc_err)err));
internal UnicornException(UnicornError error) { Error = error; }
/// <summary> /// Initializes a new instance of the <see cref="UnicornException"/> class with the specified <see cref="Binds.UnicornError"/>. /// </summary> /// <param name="error"><see cref="Binds.UnicornError"/> error code.</param> public UnicornException(UnicornError error) : base(Bindings.Instance.StrError(error)) { ErrorCode = error; }