memory

package
v0.0.0-...-533b673 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Bytes     []byte
	Hashes    []global.HashFunc
	IsChanged bool
}

Memory base filter. All operations are in the memory. 基于内存的过滤器。所有的操作都在内存中进行。

func (*Filter) Clear

func (f *Filter) Clear() error

Reset all the bytes to zero. 将所有字节重置为0

func (*Filter) Close

func (f *Filter) Close() error

func (*Filter) Exists

func (f *Filter) Exists(content []byte) bool

func (*Filter) IsEmpty

func (f *Filter) IsEmpty() bool

func (*Filter) Push

func (f *Filter) Push(content []byte)

func (*Filter) Write

func (f *Filter) Write() error

Jump to

Keyboard shortcuts

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