MCPcopy
hub / github.com/cilium/ebpf / structOpsIsMemZeroed

Function structOpsIsMemZeroed

struct_ops.go:214–221  ·  view source on GitHub ↗

structOpsIsMemZeroed() checks whether all bytes in data are zero.

(data []byte)

Source from the content-addressed store, hash-verified

212
213// structOpsIsMemZeroed() checks whether all bytes in data are zero.
214func structOpsIsMemZeroed(data []byte) bool {
215 for _, b := range data {
216 if b != 0 {
217 return false
218 }
219 }
220 return true
221}
222
223// structOpsSetAttachTo sets p.AttachTo in the expected "struct_name:memberName" format
224// based on the struct definition.

Callers 2

populateStructOpsMethod · 0.85
structOpsCopyMemberBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…