Table of Contents

Class ValidationReport

Namespace
WoWLib.Formats
Assembly
WoWLib.dll

Everything one validate() pass found, in member order. Validation is linter-style — it never stops at the first finding, so a broken entity reports every violated contract at once. A report is ok() when it holds no errors; warnings mark states real client files ship.

public class ValidationReport : IDisposable
Inheritance
ValidationReport
Implements
Inherited Members

Constructors

ValidationReport()

public ValidationReport()

ValidationReport(ValidationReport)

Copy-construct: a deep copy of other (the C++ copy constructor).

public ValidationReport(ValidationReport other)

Parameters

other ValidationReport

Properties

ErrorCount

The number of error-severity findings.

public ulong ErrorCount { get; }

Property Value

ulong

Issues

Every finding, in the order the walk recorded them.

public Vector<ValidationIssue> Issues { get; }

Property Value

Vector<ValidationIssue>

Ok

Whether the entity is fit to write: no error-severity findings (warnings do not fail a report).

public bool Ok { get; }

Property Value

bool

Size

The total finding count (errors and warnings).

public ulong Size { get; }

Property Value

ulong

Truncated

Whether findings were dropped because the report hit its size cap.

public bool Truncated { get; }

Property Value

bool

WarningCount

The number of warning-severity findings.

public ulong WarningCount { get; }

Property Value

ulong

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(ValidationReport?, ValidationReport?)

public static bool operator ==(ValidationReport? l, ValidationReport? r)

Parameters

l ValidationReport
r ValidationReport

Returns

bool

operator !=(ValidationReport?, ValidationReport?)

public static bool operator !=(ValidationReport? l, ValidationReport? r)

Parameters

l ValidationReport
r ValidationReport

Returns

bool