MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / FindIns

Function FindIns

user/util/helper.go:79–88  ·  view source on GitHub ↗
(sym_offset int64, sym_data, ins []byte)

Source from the content-addressed store, hash-verified

77}
78
79func FindIns(sym_offset int64, sym_data, ins []byte) string {
80 var result []string
81 ret_offset := bytes.Index(sym_data, ins)
82 for ret_offset > 0 {
83 result = append(result, fmt.Sprintf("0x%x", sym_offset+int64(ret_offset)))
84 sym_data = sym_data[ret_offset:]
85 ret_offset = bytes.Index(sym_data, ins)
86 }
87 return strings.Join(result, ",")
88}
89
90type PackageInfo struct {
91 Name string

Callers 1

FindRetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected