Show / Hide Table of Contents

Struct MerkleTrie.PathCursor

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
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, Boolean)

Declaration
public PathCursor(in KeyBytes keyBytes, bool secure)
Parameters
Type Name Description
KeyBytes keyBytes
Boolean secure

Fields

| Improve this Doc View Source

Bytes

Declaration
public readonly ImmutableArray<byte> Bytes
Field Value
Type Description
ImmutableArray<Byte>
| Improve this Doc View Source

NibbleLength

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

NibbleOffset

Declaration
public readonly int NibbleOffset
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

NextNibble

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

RemainingAnyNibbles

Declaration
[Pure]
public readonly bool RemainingAnyNibbles { get; }
Property Value
Type Description
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 ImmutableArray<Byte>)

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

FromNibbles(in ImmutableArray<Byte>, Int32)

Declaration
[Pure]
public static MerkleTrie.PathCursor FromNibbles(in ImmutableArray<byte> nibbles, int nibbleOffset = 0)
Parameters
Type Name Description
ImmutableArray<Byte> nibbles
Int32 nibbleOffset
Returns
Type Description
MerkleTrie.PathCursor
| Improve this Doc View Source

GetRemainingNibbles()

Declaration
[Pure]
public readonly ImmutableArray<byte> GetRemainingNibbles()
Returns
Type Description
ImmutableArray<Byte>
| Improve this Doc View Source

Next(Int32)

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

NibbleAt(Int32)

Declaration
[Pure]
public readonly byte NibbleAt(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
Byte
| Improve this Doc View Source

RemainingNibblesStartWith(in ImmutableArray<Byte>)

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