Class BlockSet
Assembly: Libplanet.Store.dll
Syntax
public class BlockSet : BaseIndex<BlockHash, Block>, IDictionary<BlockHash, Block>, ICollection<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 override int Count { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.Count
|
Improve this Doc
View Source
IsReadOnly
Declaration
public override bool IsReadOnly { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.IsReadOnly
|
Improve this Doc
View Source
Item[BlockHash]
Declaration
public override Block this[BlockHash key] { get; set; }
Parameters
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.Item[Libplanet.Types.Blocks.BlockHash]
|
Improve this Doc
View Source
Keys
Declaration
public override ICollection<BlockHash> Keys { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.Keys
|
Improve this Doc
View Source
Values
Declaration
public override ICollection<Block> Values { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.Values
Methods
|
Improve this Doc
View Source
Contains(KeyValuePair<BlockHash, Block>)
Declaration
public override bool Contains(KeyValuePair<BlockHash, Block> item)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.Contains(System.Collections.Generic.KeyValuePair<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>)
|
Improve this Doc
View Source
ContainsKey(BlockHash)
Declaration
public override bool ContainsKey(BlockHash key)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.ContainsKey(Libplanet.Types.Blocks.BlockHash)
|
Improve this Doc
View Source
Remove(BlockHash)
Declaration
public override bool Remove(BlockHash key)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.Types.Blocks.BlockHash, Libplanet.Types.Blocks.Block>.Remove(Libplanet.Types.Blocks.BlockHash)
Implements
Extension Methods