Documentation ¶
Index ¶
- type UnsolidCommitmentBuffer
- func (u *UnsolidCommitmentBuffer[V]) Add(commitmentID iotago.CommitmentID, value V) bool
- func (u *UnsolidCommitmentBuffer[V]) AddWithFunc(commitmentID iotago.CommitmentID, value V, addFunc func() bool) (added bool)
- func (u *UnsolidCommitmentBuffer[V]) EvictUntil(slotToEvict iotago.SlotIndex)
- func (u *UnsolidCommitmentBuffer[V]) GetValues(commitmentID iotago.CommitmentID) []V
- func (u *UnsolidCommitmentBuffer[V]) GetValuesAndEvict(commitmentID iotago.CommitmentID) []V
- func (u *UnsolidCommitmentBuffer[V]) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnsolidCommitmentBuffer ¶
type UnsolidCommitmentBuffer[V comparable] struct { // contains filtered or unexported fields }
func NewUnsolidCommitmentBuffer ¶
func NewUnsolidCommitmentBuffer[V comparable](commitmentBufferMaxSize int, blockBufferMaxSize ...int) *UnsolidCommitmentBuffer[V]
func (*UnsolidCommitmentBuffer[V]) Add ¶
func (u *UnsolidCommitmentBuffer[V]) Add(commitmentID iotago.CommitmentID, value V) bool
func (*UnsolidCommitmentBuffer[V]) AddWithFunc ¶
func (u *UnsolidCommitmentBuffer[V]) AddWithFunc(commitmentID iotago.CommitmentID, value V, addFunc func() bool) (added bool)
func (*UnsolidCommitmentBuffer[V]) EvictUntil ¶
func (u *UnsolidCommitmentBuffer[V]) EvictUntil(slotToEvict iotago.SlotIndex)
func (*UnsolidCommitmentBuffer[V]) GetValues ¶
func (u *UnsolidCommitmentBuffer[V]) GetValues(commitmentID iotago.CommitmentID) []V
func (*UnsolidCommitmentBuffer[V]) GetValuesAndEvict ¶
func (u *UnsolidCommitmentBuffer[V]) GetValuesAndEvict(commitmentID iotago.CommitmentID) []V
func (*UnsolidCommitmentBuffer[V]) Reset ¶
func (u *UnsolidCommitmentBuffer[V]) Reset()
Reset resets the component to a clean state as if it was created at the last commitment.
Click to show internal directories.
Click to hide internal directories.