bytesfilter

package
v0.0.0-...-c635e59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0, BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL