github.com/anacrolix/torrent@v1.61.0/bencode/string.go (about) 1 //go:build !go1.20 2 3 package bencode 4 5 import "unsafe" 6 7 func bytesAsString(b []byte) string { 8 return *(*string)(unsafe.Pointer(&b)) 9 }