Class BlockSet
Implements
System.Collections.Generic.IReadOnlyCollection<
System.Collections.Generic.KeyValuePair<
BlockHash,
Block>>
Inherited Members
System.Object.GetType()
System.Object.ToString()
Assembly: Libplanet.Store.dll
Syntax
public class BlockSet : IReadOnlyDictionary<BlockHash, Block>, IReadOnlyCollection<KeyValuePair<BlockHash, Block>>, IEnumerable<KeyValuePair<BlockHash, Block>>, IEnumerable
Constructors
|
Improve this Doc
View Source
BlockSet(IStore, Int32)
Declaration
public BlockSet(IStore store, int cacheSize = 4096)
Parameters
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
|
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
Methods
|
Improve this Doc
View Source
Add(BlockHash, Block)
Declaration
public void Add(BlockHash key, Block value)
Parameters
|
Improve this Doc
View Source
Add(KeyValuePair<BlockHash, Block>)
Declaration
public void Add(KeyValuePair<BlockHash, Block> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<BlockHash, Block> |
item |
|
|
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
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<BlockHash, Block> |
item |
|
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 |
System.Collections.Generic.KeyValuePair<BlockHash, Block>[] |
array |
|
Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<BlockHash, Block>> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<BlockHash, Block>> |
|
|
Improve this Doc
View Source
Remove(BlockHash)
Declaration
public bool Remove(BlockHash key)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Remove(KeyValuePair<BlockHash, Block>)
Declaration
public bool Remove(KeyValuePair<BlockHash, Block> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<BlockHash, Block> |
item |
|
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 |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
System.Collections.Generic.IReadOnlyCollection<T>