Skip to content

WriteProgress

Namespace Nfty.Core.Output in assembly Nfty.Core.

public readonly struct WriteProgress : IEquatable<WriteProgress>

How far a set write has got. WriteProgress.Fraction suits a progress bar.

Constructors

WriteProgress(int, int)

public WriteProgress(int Completed, int Total);

Parameters

  • Completed (int) - Assets written so far.
  • Total (int) - Assets the write will produce.

Properties

Completed

public int Completed { get; init; }

Assets written so far.

Fraction

public double Fraction { get; }

Completion as 0..1, suitable for a progress bar.

Total

public int Total { get; init; }

Assets the write will produce.