Class ManifestElement
- Namespace
- ZeroInstall.Store.Manifests
- Assembly
- ZeroInstall.Store.dll
Base class for directory-element entries (files and symlinks) in a Manifest.
[Serializable]
public abstract record ManifestElement : IEquatable<ManifestElement>
- Inheritance
-
ManifestElement
- Implements
- Derived
- Inherited Members
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.
Properties
Digest
The digest of the content of the element calculated using the selected digest algorithm.
public string Digest { get; init; }
Property Value
Size
The size of the element in bytes.
public long Size { get; init; }
Property Value
Methods
ToLine(string)
Formats the element in the Manifest line format.
public abstract string ToLine(string name)
Parameters
namestringThe name of the element.