Class ManifestElement
- Namespace
- ZeroInstall.Store.Manifests
- Assembly
- ZeroInstall.Store.dll
Base class for directory-element entries (files and symlinks) in a Manifest.
public abstract record ManifestElement : IEquatable<ManifestElement>
- Inheritance
-
objectManifestElement
- Implements
- Derived
Constructors
ManifestElement(string, long)
Base class for directory-element entries (files and symlinks) in a Manifest.
protected ManifestElement(string Digest, long Size)
Parameters
DigeststringThe digest of the content of the element calculated using the selected digest algorithm.
SizelongThe size of the element in bytes.
ManifestElement(ManifestElement)
protected ManifestElement(ManifestElement original)
Parameters
originalManifestElement
Properties
Digest
The digest of the content of the element calculated using the selected digest algorithm.
public string Digest { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Size
The size of the element in bytes.
public long Size { get; init; }
Property Value
Methods
Deconstruct(out string, out long)
public void Deconstruct(out string Digest, out long Size)
Parameters
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ManifestElement?)
public virtual bool Equals(ManifestElement? other)
Parameters
otherManifestElement
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToLine(string)
Formats the element in the Manifest line format.
public abstract string ToLine(string name)
Parameters
namestringThe name of the element.
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ManifestElement?, ManifestElement?)
public static bool operator ==(ManifestElement? left, ManifestElement? right)
Parameters
leftManifestElementrightManifestElement
Returns
operator !=(ManifestElement?, ManifestElement?)
public static bool operator !=(ManifestElement? left, ManifestElement? right)
Parameters
leftManifestElementrightManifestElement