mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
Https kcp
This commit is contained in:
@@ -335,3 +335,12 @@ func RemoveArrVal(arr []string, val string) []string {
|
||||
}
|
||||
return arr
|
||||
}
|
||||
|
||||
func BytesToNum(b []byte) int {
|
||||
var str string
|
||||
for i := 0; i < len(b); i++ {
|
||||
str += strconv.Itoa(int(b[i]))
|
||||
}
|
||||
x, _ := strconv.Atoi(str)
|
||||
return int(x)
|
||||
}
|
||||
|
Reference in New Issue
Block a user