Show / Hide Table of Contents

Class ShaMapInner

Inheritance
object
ShaMapNode
ShaMapInner
ShaMap
Inherited Members
ShaMapNode.CachedHash
ShaMapNode.AsLeaf()
ShaMapNode.AsInner()
ShaMapNode.Invalidate()
ShaMapNode.CreateHash()
ShaMapNode.WalkAnyLeaves(OnLeaf)
Namespace: Xrpl.BinaryCodec.ShaMapTree
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class ShaMapInner : ShaMapNode

Constructors

| Edit this page View Source

ShaMapInner(bool, int, int)

Declaration
public ShaMapInner(bool isCopy, int depth, int version)
Parameters
Type Name Description
bool isCopy
int depth
int version
| Edit this page View Source

ShaMapInner(int)

Declaration
public ShaMapInner(int depth)
Parameters
Type Name Description
int depth

Fields

| Edit this page View Source

Branches

Declaration
protected ShaMapNode[] Branches
Field Value
Type Description
ShaMapNode[]
| Edit this page View Source

Depth

Declaration
public int Depth
Field Value
Type Description
int

Properties

| Edit this page View Source

IsInner

Declaration
public override bool IsInner { get; }
Property Value
Type Description
bool
Overrides
ShaMapNode.IsInner
| Edit this page View Source

IsLeaf

Declaration
public override bool IsLeaf { get; }
Property Value
Type Description
bool
Overrides
ShaMapNode.IsLeaf

Methods

| Edit this page View Source

AddItem(Hash256, IShaMapItem<object>)

Declaration
public bool AddItem(Hash256 index, IShaMapItem<object> item)
Parameters
Type Name Description
Hash256 index
IShaMapItem<object> item
Returns
Type Description
bool
| Edit this page View Source

AddLeaf(ShaMapLeaf)

Declaration
public bool AddLeaf(ShaMapLeaf leaf)
Parameters
Type Name Description
ShaMapLeaf leaf
Returns
Type Description
bool
| Edit this page View Source

Branch(int)

Declaration
public ShaMapNode Branch(int i)
Parameters
Type Name Description
int i
Returns
Type Description
ShaMapNode
| Edit this page View Source

BranchCount()

Declaration
public int BranchCount()
Returns
Type Description
int
| Edit this page View Source

Copy(int)

Declaration
protected ShaMapInner Copy(int version)
Parameters
Type Name Description
int version
Returns
Type Description
ShaMapInner
| Edit this page View Source

Empty()

Declaration
public bool Empty()
Returns
Type Description
bool
| Edit this page View Source

GetBranch(int)

Declaration
public ShaMapNode GetBranch(int i)
Parameters
Type Name Description
int i
Returns
Type Description
ShaMapNode
| Edit this page View Source

GetBranch(Hash256)

Declaration
protected ShaMapNode GetBranch(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
ShaMapNode
| Edit this page View Source

GetItem(Hash256)

Declaration
public IShaMapItem<object> GetItem(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
IShaMapItem<object>
| Edit this page View Source

GetLeaf(Hash256)

Declaration
public ShaMapLeaf GetLeaf(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
ShaMapLeaf
| Edit this page View Source

GetLeafForUpdating(Hash256)

Declaration
public ShaMapLeaf GetLeafForUpdating(Hash256 leaf)
Parameters
Type Name Description
Hash256 leaf
Returns
Type Description
ShaMapLeaf
| Edit this page View Source

HasInner(int)

Declaration
public bool HasInner(int i)
Parameters
Type Name Description
int i
Returns
Type Description
bool
| Edit this page View Source

HasLeaf(int)

Declaration
public bool HasLeaf(int i)
Parameters
Type Name Description
int i
Returns
Type Description
bool
| Edit this page View Source

HasLeaf(Hash256)

Declaration
public bool HasLeaf(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
bool
| Edit this page View Source

HasNone(int)

Declaration
public bool HasNone(int i)
Parameters
Type Name Description
int i
Returns
Type Description
bool
| Edit this page View Source

Hash()

Declaration
public override Hash256 Hash()
Returns
Type Description
Hash256
Overrides
ShaMapNode.Hash()
| Edit this page View Source

MakeInnerChild()

Declaration
protected ShaMapInner MakeInnerChild()
Returns
Type Description
ShaMapInner
| Edit this page View Source

MakeInnerOfSameClass(int)

Declaration
protected virtual ShaMapInner MakeInnerOfSameClass(int depth)
Parameters
Type Name Description
int depth
Returns
Type Description
ShaMapInner
| Edit this page View Source

OnlyChildLeaf()

Declaration
public ShaMapLeaf OnlyChildLeaf()
Returns
Type Description
ShaMapLeaf

the only child leaf or null if other children

| Edit this page View Source

PathToIndex(Hash256)

Declaration
public PathToIndex PathToIndex(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
PathToIndex
| Edit this page View Source

RemoveLeaf(Hash256)

Declaration
public bool RemoveLeaf(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
bool
| Edit this page View Source

SelectBranch(Hash256)

Declaration
protected int SelectBranch(Hash256 index)
Parameters
Type Name Description
Hash256 index
Returns
Type Description
int
| Edit this page View Source

SetBranch(Hash256, ShaMapNode)

Declaration
protected void SetBranch(Hash256 index, ShaMapNode node)
Parameters
Type Name Description
Hash256 index
ShaMapNode node
| Edit this page View Source

SetLeaf(ShaMapLeaf)

Declaration
protected void SetLeaf(ShaMapLeaf leaf)
Parameters
Type Name Description
ShaMapLeaf leaf
| Edit this page View Source

ToBytesSink(IBytesSink)

Declaration
public override void ToBytesSink(IBytesSink sink)
Parameters
Type Name Description
IBytesSink sink
Overrides
ShaMapNode.ToBytesSink(IBytesSink)
| Edit this page View Source

UpdateItem(Hash256, IShaMapItem<object>)

Declaration
public bool UpdateItem(Hash256 index, IShaMapItem<object> item)
Parameters
Type Name Description
Hash256 index
IShaMapItem<object> item
Returns
Type Description
bool
| Edit this page View Source

UpdateLeaf(ShaMapLeaf)

Declaration
public bool UpdateLeaf(ShaMapLeaf leaf)
Parameters
Type Name Description
ShaMapLeaf leaf
Returns
Type Description
bool
| Edit this page View Source

WalkLeaves(OnLeaf)

Declaration
public void WalkLeaves(OnLeaf leafWalker)
Parameters
Type Name Description
OnLeaf leafWalker
| Edit this page View Source

WalkTree(ITreeWalker)

Declaration
public virtual void WalkTree(ITreeWalker treeWalker)
Parameters
Type Name Description
ITreeWalker treeWalker
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX