MCPcopy
hub / github.com/evilsocket/opensnitch / hexToInt

Function hexToInt

daemon/netstat/parse.go:38–44  ·  view source on GitHub ↗
(h string)

Source from the content-addressed store, hash-verified

36}
37
38func hexToInt(h string) uint {
39 d, err := strconv.ParseUint(h, 16, 64)
40 if err != nil {
41 log.Fatal("Error while parsing %s to int: %s", h, err)
42 }
43 return uint(d)
44}
45
46func hexToInt2(h string) (uint, uint) {
47 if len(h) > 16 {

Callers 1

ParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected