parseAddress converts a hex-string to a uintptr.
(s string)
| 81 | |
| 82 | // parseAddress converts a hex-string to a uintptr. |
| 83 | func 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. |
| 93 | func parseAddresses(s string) (uintptr, uintptr, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…