Documentation ¶
Index ¶
- type BytesFilter
- func (b *BytesFilter[IdentifierType]) Add(bytes []byte) (identifier IdentifierType, added bool)
- func (b *BytesFilter[IdentifierType]) AddIdentifier(identifier IdentifierType) (added bool)
- func (b *BytesFilter[IdentifierType]) Contains(bytes []byte) (exists bool)
- func (b *BytesFilter[IdentifierType]) ContainsIdentifier(identifier IdentifierType) (exists bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesFilter ¶
type BytesFilter[IdentifierType types.IdentifierType] struct { // contains filtered or unexported fields }
func New ¶
func New[IdentifierType types.IdentifierType](newIdentifierFunc func([]byte) IdentifierType, size int) *BytesFilter[IdentifierType]
func (*BytesFilter[IdentifierType]) Add ¶
func (b *BytesFilter[IdentifierType]) Add(bytes []byte) (identifier IdentifierType, added bool)
func (*BytesFilter[IdentifierType]) AddIdentifier ¶
func (b *BytesFilter[IdentifierType]) AddIdentifier(identifier IdentifierType) (added bool)
func (*BytesFilter[IdentifierType]) Contains ¶
func (b *BytesFilter[IdentifierType]) Contains(bytes []byte) (exists bool)
func (*BytesFilter[IdentifierType]) ContainsIdentifier ¶
func (b *BytesFilter[IdentifierType]) ContainsIdentifier(identifier IdentifierType) (exists bool)
Click to show internal directories.
Click to hide internal directories.