Show / Hide Table of Contents

Struct PathCursor

Inherited Members
System.ValueType.Equals(System.Object)
ValueType.GetHashCode()
System.ValueType.ToString()
Object.Equals(Object, Object)
System.Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Store.Trie
Assembly: Libplanet.Store.dll
Syntax
public readonly struct PathCursor

Constructors

| Improve this Doc View Source

PathCursor(in KeyBytes)

Declaration
public PathCursor(in KeyBytes keyBytes)
Parameters
Type Name Description
KeyBytes keyBytes
| Improve this Doc View Source

PathCursor(in Nibbles)

Creates a PathCursor from nibbles.

Declaration
public PathCursor(in Nibbles nibbles)
Parameters
Type Name Description
Nibbles nibbles

The Nibbles from which to derive a PathCursor.

Fields

| Improve this Doc View Source

Length

Declaration
public readonly int Length
Field Value
Type Description
Int32
| Improve this Doc View Source

Nibbles

Declaration
public readonly Nibbles Nibbles
Field Value
Type Description
Nibbles
| Improve this Doc View Source

Offset

Declaration
public readonly int Offset
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

NextNibble

Declaration
[Pure]
public readonly byte NextNibble { get; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

RemainingAnyNibbles

Declaration
[Pure]
public readonly bool RemainingAnyNibbles { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RemainingNibbleLength

Declaration
[Pure]
public readonly int RemainingNibbleLength { get; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

CountCommonStartingNibbles(in Nibbles)

Declaration
[Pure]
public readonly int CountCommonStartingNibbles(in Nibbles nibbles)
Parameters
Type Name Description
Nibbles nibbles
Returns
Type Description
Int32
| Improve this Doc View Source

GetCommonStartingNibbles(in Nibbles)

Declaration
[Pure]
public readonly Nibbles GetCommonStartingNibbles(in Nibbles nibbles)
Parameters
Type Name Description
Nibbles nibbles
Returns
Type Description
Nibbles
| Improve this Doc View Source

GetConsumedNibbles()

Declaration
[Pure]
public readonly Nibbles GetConsumedNibbles()
Returns
Type Description
Nibbles
| Improve this Doc View Source

GetRemainingNibbles()

Declaration
[Pure]
public readonly Nibbles GetRemainingNibbles()
Returns
Type Description
Nibbles
| Improve this Doc View Source

Next(Int32)

Declaration
[Pure]
public readonly PathCursor Next(int offset)
Parameters
Type Name Description
Int32 offset
Returns
Type Description
PathCursor
| Improve this Doc View Source

RemainingNibblesStartWith(in Nibbles)

Declaration
[Pure]
public readonly bool RemainingNibblesStartWith(in Nibbles nibbles)
Parameters
Type Name Description
Nibbles nibbles
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium