Show / Hide Table of Contents

Class HashNodeCache

A class used for internally caching hashed nodes of MerkleTries.

Inheritance
Object
HashNodeCache
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
System.Object.ToString()
Namespace: Libplanet.Store
Assembly: Libplanet.Store.dll
Syntax
public class HashNodeCache

Methods

| Improve this Doc View Source

AddOrUpdate(HashDigest<SHA256>, IValue)

A class used for internally caching hashed nodes of MerkleTries.

Declaration
public void AddOrUpdate(HashDigest<SHA256> hash, IValue value)
Parameters
Type Name Description
HashDigest<SHA256> hash
Bencodex.Types.IValue value
| Improve this Doc View Source

TryGetValue(HashDigest<SHA256>, out IValue)

A class used for internally caching hashed nodes of MerkleTries.

Declaration
public bool TryGetValue(HashDigest<SHA256> hash, out IValue value)
Parameters
Type Name Description
HashDigest<SHA256> hash
Bencodex.Types.IValue value
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium