Class TrieMetadata
Implements
Bencodex.IBencodable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Libplanet.Store.Trie
Assembly: Libplanet.Store.dll
Syntax
public class TrieMetadata : IBencodable
Constructors
| Improve this Doc View SourceTrieMetadata(IValue)
Declaration
public TrieMetadata(IValue bencoded)
Parameters
| Type | Name | Description |
|---|---|---|
| Bencodex.Types.IValue | bencoded |
TrieMetadata(Int32)
Creates a TrieMetadata instance.
Declaration
public TrieMetadata(int version)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | version | The version of the TrieMetadata to create. This must equal to the version of IPreEvaluationBlock that is under evaluation. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when either |
Properties
| Improve this Doc View SourceBencoded
Declaration
public IValue Bencoded { get; }
Property Value
| Type | Description |
|---|---|
| Bencodex.Types.IValue |
Version
Declaration
public int Version { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Implements
Bencodex.IBencodable