Class CatalogExport
A catalog ready to serve: its canonical form, the bytes WELCOME carries, and their digest, produced together.
public sealed record CatalogExport : IEquatable<CatalogExport>
- Inheritance
-
CatalogExport
- Implements
- Inherited Members
Constructors
CatalogExport(Catalog, byte[], ulong)
A catalog ready to serve: its canonical form, the bytes WELCOME carries, and their digest, produced together.
public CatalogExport(Catalog Canonical, byte[] Utf8, ulong Hash)
Parameters
CanonicalCatalogThe canonical catalog.
Utf8byte[]Its canonical UTF-8 JSON.
HashulongThe FNV-1a 64 digest of
Utf8.
Properties
Canonical
The canonical catalog.
public Catalog Canonical { get; init; }
Property Value
Hash
The FNV-1a 64 digest of Utf8.
public ulong Hash { get; init; }
Property Value
Utf8
Its canonical UTF-8 JSON.
public byte[] Utf8 { get; init; }
Property Value
- byte[]
Methods
Deconstruct(out Catalog, out byte[], out ulong)
public void Deconstruct(out Catalog Canonical, out byte[] Utf8, out ulong Hash)
Parameters
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(CatalogExport?)
public bool Equals(CatalogExport? other)
Parameters
otherCatalogExport
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CatalogExport?, CatalogExport?)
public static bool operator ==(CatalogExport? left, CatalogExport? right)
Parameters
leftCatalogExportrightCatalogExport
Returns
operator !=(CatalogExport?, CatalogExport?)
public static bool operator !=(CatalogExport? left, CatalogExport? right)
Parameters
leftCatalogExportrightCatalogExport