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

Method Next

pkg/sys/object.go:92–96  ·  view source on GitHub ↗

Next returns the next object type structure given the previous structure pointer.

(typ *ObjectTypeInformation)

Source from the content-addressed store, hash-verified

90
91// Next returns the next object type structure given the previous structure pointer.
92func (*ObjectTypesInformation) Next(typ *ObjectTypeInformation) *ObjectTypeInformation {
93 align := (uintptr(typ.TypeName.MaximumLength) + typesize.Pointer() - 1) &^ (typesize.Pointer() - 1)
94 offset := uintptr(unsafe.Pointer(typ)) + unsafe.Sizeof(ObjectTypeInformation{})
95 return (*ObjectTypeInformation)(unsafe.Pointer(offset + align))
96}
97
98// ObjectNameInformation stores object name information.
99type ObjectNameInformation struct {

Callers 2

findObjectTypesFunction · 0.80
findCallerMethod · 0.80

Calls 1

PointerFunction · 0.92

Tested by

no test coverage detected