mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
16 lines
238 B
Go
16 lines
238 B
Go
// +build !arm
|
|
|
|
package host
|
|
|
|
func charsToString(ca [65]int8) string {
|
|
s := make([]byte, len(ca))
|
|
var lens int
|
|
for ; lens < len(ca); lens++ {
|
|
if ca[lens] == 0 {
|
|
break
|
|
}
|
|
s[lens] = uint8(ca[lens])
|
|
}
|
|
return string(s[0:lens])
|
|
}
|