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

Function decToInt

daemon/netstat/parse.go:30–36  ·  view source on GitHub ↗
(n string)

Source from the content-addressed store, hash-verified

28)
29
30func decToInt(n string) int {
31 d, err := strconv.ParseInt(n, 10, 64)
32 if err != nil {
33 log.Fatal("Error while parsing %s to int: %s", n, err)
34 }
35 return int(d)
36}
37
38func hexToInt(h string) uint {
39 d, err := strconv.ParseUint(h, 16, 64)

Callers 2

ParsePacketFunction · 0.85
ParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected