MCPcopy Create free account
hub / github.com/google/nftables / GetUint32

Function GetUint32

userdata/userdata.go:92–99  ·  view source on GitHub ↗
(udata []byte, typ Type)

Source from the content-addressed store, hash-verified

90}
91
92func GetUint32(udata []byte, typ Type) (uint32, bool) {
93 data := Get(udata, typ)
94 if data == nil {
95 return 0, false
96 }
97
98 return binary.LittleEndian.Uint32(data), true
99}
100
101func AppendString(udata []byte, typ Type, str string) []byte {
102 data := append([]byte(str), 0)

Callers 2

setsFromMsgFunction · 0.92
TestUint32Function · 0.92

Calls 2

GetFunction · 0.85
Uint32Method · 0.65

Tested by 1

TestUint32Function · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…