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

Function AppendString

userdata/userdata.go:101–104  ·  view source on GitHub ↗
(udata []byte, typ Type, str string)

Source from the content-addressed store, hash-verified

99}
100
101func AppendString(udata []byte, typ Type, str string) []byte {
102 data := append([]byte(str), 0)
103 return Append(udata, typ, data)
104}
105
106func GetString(udata []byte, typ Type) (string, bool) {
107 data := Get(udata, typ)

Callers 4

makeElemListMethod · 0.92
AddSetMethod · 0.92
TestUserDataCommentFunction · 0.92
TestCommentInteropGo2CliFunction · 0.92

Calls 1

AppendFunction · 0.85

Tested by 2

TestUserDataCommentFunction · 0.74
TestCommentInteropGo2CliFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…