Class BlockSet
Inheritance
System.Object
BlockSet
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
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public IEnumerable<BlockHash> Keys { get; }
Property Value
|
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
|
Improve this Doc
View Source
Add(BlockHash, Block)
Declaration
public void Add(BlockHash key, Block value)
Parameters
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Contains(KeyValuePair<BlockHash, Block>)
Declaration
public bool Contains(KeyValuePair<BlockHash, Block> item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsKey(BlockHash)
Declaration
public bool ContainsKey(BlockHash key)
Parameters
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
|
Improve this Doc
View Source
Remove(KeyValuePair<BlockHash, Block>)
Declaration
public bool Remove(KeyValuePair<BlockHash, Block> item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Remove(BlockHash)
Declaration
public bool Remove(BlockHash key)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetValue(BlockHash, out Block)
Declaration
public bool TryGetValue(BlockHash key, out Block value)
Parameters
Returns
Type |
Description |
System.Boolean |
|