Show / Hide Table of Contents

Class ShortNode

Inheritance
Object
ShortNode
Implements
INode
IEquatable<ShortNode>
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 sealed class ShortNode : INode, IEquatable<ShortNode>

Constructors

| Improve this Doc View Source

ShortNode(in Nibbles, INode)

Declaration
public ShortNode(in Nibbles nibbles, INode value)
Parameters
Type Name Description
Nibbles nibbles
INode value

Properties

| Improve this Doc View Source

Key

Declaration
public Nibbles Key { get; }
Property Value
Type Description
Nibbles
| Improve this Doc View Source

Value

Represents an INode at the end of a ShortNode. It can be a ValueNode, a FullNode, or a HashNode of either a ValueNode or a FullNode. That is, this can be neither a ShortNode nor a HashNode of a ShortNode.

Declaration
public INode Value { get; }
Property Value
Type Description
INode

Methods

| Improve this Doc View Source

Equals(ShortNode)

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

Equals(Object)

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

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

ToBencodex()

Declaration
public IValue ToBencodex()
Returns
Type Description
Bencodex.Types.IValue

Implements

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