(sd string)
| 115 | } |
| 116 | |
| 117 | func endianConvert(sd string) (newSD string) { |
| 118 | sdBytes, _ := hex.DecodeString(sd) |
| 119 | |
| 120 | for i, j := 0, len(sdBytes)-1; i < j; i, j = i+1, j-1 { |
| 121 | sdBytes[i], sdBytes[j] = sdBytes[j], sdBytes[i] |
| 122 | } |
| 123 | |
| 124 | newSD = hex.EncodeToString(sdBytes) |
| 125 | |
| 126 | return |
| 127 | } |
| 128 | |
| 129 | func hexToOffset(hex string) (integer int64) { |
| 130 | integer, _ = strconv.ParseInt(hex, 16, 64) |
no outgoing calls
no test coverage detected