Section navigation

Public classSealed CodecRegistry

Namespace
Rowles.LeanCorpus.Codecs.CodecKit.Codecs
Assembly
Rowles.LeanCorpus.dll

Immutable registry of checksum providers. Use the builder pattern to register providers, then build an immutable instance.

public sealed class CodecRegistry
Inheritance
CodecRegistry

Public property Default

Default registry pre-loaded with CRC32, xxHash32, and xxHash64 checksum providers.

Public property Empty

Creates an empty registry for building up from scratch.

Public method GetChecksumProvider(ChecksumAlgorithmId)

Looks up a checksum provider by algorithm ID.

Public method WithChecksum(ChecksumAlgorithmId, IChecksumProvider)

Returns a new registry with an additional checksum provider.