refcounter

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefcounterUint32

type RefcounterUint32 struct {
	// contains filtered or unexported fields
}

RefcounterUint32 contains a list of items to keep refcounts on

func NewRefCounterUint32

func NewRefCounterUint32() *RefcounterUint32

NewRefCounterUint32 creates a list of items to keep refcounts on

func (*RefcounterUint32) Add

func (r *RefcounterUint32) Add(value uint32)

Add adds new item to the list of items or add the ref count of an existing one.

func (*RefcounterUint32) IsPresent

func (r *RefcounterUint32) IsPresent(value uint32) bool

IsPresent checks if a given value is part of the known items

func (*RefcounterUint32) Remove

func (r *RefcounterUint32) Remove(value uint32)

Remove a value from the list of items or decrement the ref count of an existing one.

Jump to

Keyboard shortcuts

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