C# Класс BitSharp.Esent.EsentBlockTxesStorage

Наследование: IBlockTxesStorage
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddBlockIndex int
AddTransaction void
CreateDatabase void
CreateOrOpenDatabase void
DeleteBlockIndex void
DeleteDatabase void
OpenDatabase void
ReadBlockTransactions IEnumerator
TryGetBlockIndex bool

Открытые методы

Метод Описание
ContainsBlock ( UInt256 blockHash ) : bool
Defragment ( ) : void
DeleteElements ( IEnumerable blockTxIndices ) : void
Dispose ( ) : void
EsentBlockTxesStorage ( string baseDirectory, int index = null ) : BitSharp.Common
Flush ( ) : void
PruneElements ( IEnumerable blockTxIndices ) : void
TryAddBlockTransactions ( UInt256 blockHash, IEnumerable blockTxes ) : bool
TryGetTransaction ( UInt256 blockHash, int txIndex, BlockTx &transaction ) : bool
TryReadBlockTransactions ( UInt256 blockHash, IEnumerator &blockTxes ) : bool
TryReadBlockTxNodes ( UInt256 blockHash, IEnumerator &blockTxNodes ) : bool
TryRemoveBlockTransactions ( UInt256 blockHash ) : bool

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
AddBlockIndex ( BitSharp.Esent.EsentBlockTxesCursor cursor, UInt256 blockHash ) : int
AddTransaction ( int blockIndex, int txIndex, UInt256 txHash, byte txBytes, BitSharp.Esent.EsentBlockTxesCursor cursor ) : void
CreateDatabase ( ) : void
CreateOrOpenDatabase ( ) : void
DeleteBlockIndex ( BitSharp.Esent.EsentBlockTxesCursor cursor, UInt256 blockHash ) : void
DeleteDatabase ( ) : void
OpenDatabase ( ) : void
ReadBlockTransactions ( UInt256 blockHash, bool requireTx ) : IEnumerator
TryGetBlockIndex ( BitSharp.Esent.EsentBlockTxesCursor cursor, UInt256 blockHash, int &blockIndex ) : bool

Описание методов

ContainsBlock() публичный Метод

public ContainsBlock ( UInt256 blockHash ) : bool
blockHash UInt256
Результат bool

Defragment() публичный Метод

public Defragment ( ) : void
Результат void

DeleteElements() публичный Метод

public DeleteElements ( IEnumerable blockTxIndices ) : void
blockTxIndices IEnumerable
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EsentBlockTxesStorage() публичный Метод

public EsentBlockTxesStorage ( string baseDirectory, int index = null ) : BitSharp.Common
baseDirectory string
index int
Результат BitSharp.Common

Flush() публичный Метод

public Flush ( ) : void
Результат void

PruneElements() публичный Метод

public PruneElements ( IEnumerable blockTxIndices ) : void
blockTxIndices IEnumerable
Результат void

TryAddBlockTransactions() публичный Метод

public TryAddBlockTransactions ( UInt256 blockHash, IEnumerable blockTxes ) : bool
blockHash UInt256
blockTxes IEnumerable
Результат bool

TryGetTransaction() публичный Метод

public TryGetTransaction ( UInt256 blockHash, int txIndex, BlockTx &transaction ) : bool
blockHash UInt256
txIndex int
transaction BitSharp.Core.Domain.BlockTx
Результат bool

TryReadBlockTransactions() публичный Метод

public TryReadBlockTransactions ( UInt256 blockHash, IEnumerator &blockTxes ) : bool
blockHash UInt256
blockTxes IEnumerator
Результат bool

TryReadBlockTxNodes() публичный Метод

public TryReadBlockTxNodes ( UInt256 blockHash, IEnumerator &blockTxNodes ) : bool
blockHash UInt256
blockTxNodes IEnumerator
Результат bool

TryRemoveBlockTransactions() публичный Метод

public TryRemoveBlockTransactions ( UInt256 blockHash ) : bool
blockHash UInt256
Результат bool