MCPcopy Create free account
hub / github.com/prometheus/procfs / parseAddress

Function parseAddress

proc_maps.go:83–90  ·  view source on GitHub ↗

parseAddress converts a hex-string to a uintptr.

(s string)

Source from the content-addressed store, hash-verified

81
82// parseAddress converts a hex-string to a uintptr.
83func parseAddress(s string) (uintptr, error) {
84 a, err := strconv.ParseUint(s, 16, 0)
85 if err != nil {
86 return 0, err
87 }
88
89 return uintptr(a), nil
90}
91
92// parseAddresses parses the start-end address.
93func parseAddresses(s string) (uintptr, uintptr, error) {

Callers 1

parseAddressesFunction · 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…