Show / Hide Table of Contents

Class BlockSet

Inheritance
System.Object
BlockSet
Namespace: Libplanet.Store
Assembly: Libplanet.Store.dll
Syntax
public class BlockSet : IReadOnlyDictionary<BlockHash, Block>

Constructors

| Improve this Doc View Source

BlockSet(IStore, Int32)

Declaration
public BlockSet(IStore store, int cacheSize = 4096)
Parameters
Type Name Description
IStore store
System.Int32 cacheSize

Properties

| Improve this Doc View Source

Count

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[BlockHash]

Declaration
public Block this[BlockHash key] { get; set; }
Parameters
Type Name Description
BlockHash key
Property Value
Type Description
Block
| Improve this Doc View Source

Keys

Declaration
public IEnumerable<BlockHash> Keys { get; }
Property Value
Type Description
IEnumerable<BlockHash>
| Improve this Doc View Source

Values

Declaration
public IEnumerable<Block> Values { get; }
Property Value
Type Description
IEnumerable<Block>

Methods

| Improve this Doc View Source

Add(KeyValuePair<BlockHash, Block>)

Declaration
public void Add(KeyValuePair<BlockHash, Block> item)
Parameters
Type Name Description
KeyValuePair<BlockHash, Block> item
| Improve this Doc View Source

Add(BlockHash, Block)

Declaration
public void Add(BlockHash key, Block value)
Parameters
Type Name Description
BlockHash key
Block value
| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Contains(KeyValuePair<BlockHash, Block>)

Declaration
public bool Contains(KeyValuePair<BlockHash, Block> item)
Parameters
Type Name Description
KeyValuePair<BlockHash, Block> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ContainsKey(BlockHash)

Declaration
public bool ContainsKey(BlockHash key)
Parameters
Type Name Description
BlockHash key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CopyTo(KeyValuePair<BlockHash, Block>[], Int32)

Declaration
public void CopyTo(KeyValuePair<BlockHash, Block>[] array, int arrayIndex)
Parameters
Type Name Description
KeyValuePair<BlockHash, Block>[] array
System.Int32 arrayIndex
| Improve this Doc View Source

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<BlockHash, Block>> GetEnumerator()
Returns
Type Description
IEnumerator<KeyValuePair<BlockHash, Block>>
| Improve this Doc View Source

Remove(KeyValuePair<BlockHash, Block>)

Declaration
public bool Remove(KeyValuePair<BlockHash, Block> item)
Parameters
Type Name Description
KeyValuePair<BlockHash, Block> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Remove(BlockHash)

Declaration
public bool Remove(BlockHash key)
Parameters
Type Name Description
BlockHash key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetValue(BlockHash, out Block)

Declaration
public bool TryGetValue(BlockHash key, out Block value)
Parameters
Type Name Description
BlockHash key
Block value
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium