Table of Contents

Class CatalogExport

Namespace
Typhon.Protocol
Assembly
Typhon.Protocol.dll

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

Canonical Catalog

The canonical catalog.

Utf8 byte[]

Its canonical UTF-8 JSON.

Hash ulong

The FNV-1a 64 digest of Utf8.

Properties

Canonical

The canonical catalog.

public Catalog Canonical { get; init; }

Property Value

Catalog

Hash

The FNV-1a 64 digest of Utf8.

public ulong Hash { get; init; }

Property Value

ulong

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

Canonical Catalog
Utf8 byte[]
Hash ulong

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(CatalogExport?)

public bool Equals(CatalogExport? other)

Parameters

other CatalogExport

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CatalogExport?, CatalogExport?)

public static bool operator ==(CatalogExport? left, CatalogExport? right)

Parameters

left CatalogExport
right CatalogExport

Returns

bool

operator !=(CatalogExport?, CatalogExport?)

public static bool operator !=(CatalogExport? left, CatalogExport? right)

Parameters

left CatalogExport
right CatalogExport

Returns

bool