Show / Hide Table of Contents

Class HashNode

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

Inheritance
Object
HashNode
Implements
INode
IEquatable<HashNode>
Inherited Members
Object.Equals(Object, Object)
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
System.Object.ToString()
Namespace: Libplanet.Store.Trie.Nodes
Assembly: Libplanet.Store.dll
Syntax
public class HashNode : INode, IEquatable<HashNode>

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(Object)

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

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

GetHashCode()

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

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

Serialize()

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

Declaration
public byte[] Serialize()
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

ToBencodex()

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

Declaration
public IValue ToBencodex()
Returns
Type Description
Bencodex.Types.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
System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium