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

Method ID

pkg/event/types_windows.go:598–607  ·  view source on GitHub ↗

ID is an unsigned integer that uniquely identifies the event. Handy for bitmask operations.

()

Source from the content-addressed store, hash-verified

596// identifies the event. Handy for bitmask
597// operations.
598func (t Type) ID() uint {
599 id := uint(t[0])<<56 |
600 uint(t[1])<<48 |
601 uint(t[2])<<40 |
602 uint(t[3])<<32 |
603 uint(t[4])<<24 |
604 uint(t[5])<<16 |
605 uint(t.HookID())
606 return id
607}
608
609// Source designates the provenance of this event type.
610func (t Type) Source() Source {

Callers 13

TestEventSourceConfigFunction · 0.45
initFromViperMethod · 0.45
InitMethod · 0.45
SetDropMaskMethod · 0.45
TestDropMaskMethod · 0.45
SetBitMethod · 0.45
IsBitSetMethod · 0.45
TestBitmaskFunction · 0.45
BenchmarkBitmaskFunction · 0.45
TestTypeIDFunction · 0.45
TestIDEqualityFunction · 0.45
TestEventTypeIDCollisionFunction · 0.45

Calls 1

HookIDMethod · 0.95

Tested by 6

TestEventSourceConfigFunction · 0.36
TestBitmaskFunction · 0.36
BenchmarkBitmaskFunction · 0.36
TestTypeIDFunction · 0.36
TestIDEqualityFunction · 0.36
TestEventTypeIDCollisionFunction · 0.36