Show / Hide Table of Contents

Class ShortNode

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

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

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

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

ToBencodex()

Declaration
public IValue ToBencodex()
Returns
Type Description
IValue

Implements

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