Show / Hide Table of Contents

Class HashNode

HashDigest<T>'s wrapper class, used in ITrie interface.

Inheritance
System.Object
HashNode
Implements
INode
IEquatable<HashNode>
Namespace: Libplanet.Store.Trie.Nodes
Assembly: Libplanet.Store.dll
Syntax
public class HashNode : object, INode

Constructors

| Improve this Doc View Source

HashNode(HashDigest<SHA256>)

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public HashNode(HashDigest<SHA256> hashDigest)
Parameters
Type Name Description
HashDigest<SHA256> hashDigest

Properties

| Improve this Doc View Source

HashDigest

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public HashDigest<SHA256> HashDigest { get; }
Property Value
Type Description
HashDigest<SHA256>

Methods

| Improve this Doc View Source

Equals(HashNode)

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public bool Equals(HashNode other)
Parameters
Type Name Description
HashNode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Nullable<Object>)

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
System.Nullable<System.Object> obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

ToBencodex()

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public IValue ToBencodex()
Returns
Type Description
IValue

Operators

| Improve this Doc View Source

Equality(HashNode, HashNode)

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public static bool operator ==(HashNode left, HashNode right)
Parameters
Type Name Description
HashNode left
HashNode right
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(HashNode, HashNode)

HashDigest<T>'s wrapper class, used in ITrie interface.

Declaration
public static bool operator !=(HashNode left, HashNode right)
Parameters
Type Name Description
HashNode left
HashNode right
Returns
Type Description
System.Boolean

Implements

INode
IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium