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

Method Len

pkg/cap/section/section.go:59–59  ·  view source on GitHub ↗

Len returns the length of the section.

()

Source from the content-addressed store, hash-verified

57
58// Len returns the length of the section.
59func (s Section) Len() uint32 { return bytes.ReadUint32(s[2:6]) }
60
61// Size returns the size of the section.
62func (s Section) Size() uint32 { return bytes.ReadUint32(s[6:]) }

Callers 9

StringMethod · 0.95
TestSectionFunction · 0.45
TestTransformersFunction · 0.45
TestLoadRulesFromPathsFunction · 0.45
TestLoadGroupsFromURLsFunction · 0.45
TestNewFromYamlFileFunction · 0.45
TestHTTPOutputFunction · 0.45

Calls 1

ReadUint32Function · 0.92

Tested by 7

TestSectionFunction · 0.36
TestTransformersFunction · 0.36
TestLoadRulesFromPathsFunction · 0.36
TestLoadGroupsFromURLsFunction · 0.36
TestNewFromYamlFileFunction · 0.36
TestHTTPOutputFunction · 0.36