Table of Contents

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

Digest string

The digest of the content of the element calculated using the selected digest algorithm.

Size long

The 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

string

Size

The size of the element in bytes.

public long Size { get; init; }

Property Value

long

Methods

ToLine(string)

Formats the element in the Manifest line format.

public abstract string ToLine(string name)

Parameters

name string

The name of the element.

Returns

string