MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / IsSet

Method IsSet

pkg/util/bitmask/bitmask.go:53–57  ·  view source on GitHub ↗
(i uint)

Source from the content-addressed store, hash-verified

51}
52
53func (b *Bitmask) IsSet(i uint) bool {
54 word := i / 64
55 bit := i % 64
56 return b.words[word]&(1<<bit) != 0
57}

Callers 6

TestDropMaskMethod · 0.80
ExcludeEventMethod · 0.80
EventExistsMethod · 0.80
IsBitSetMethod · 0.80
TestBitmaskFunction · 0.80
BenchmarkBitmaskFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestBitmaskFunction · 0.64
BenchmarkBitmaskFunction · 0.64