C# 클래스 BitSharp.Esent.EsentBlockTxesStorage

상속: IBlockTxesStorage
파일 보기 프로젝트 열기: pmlyon/BitSharp

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