FedP2P/bencode/string.go

10 lines
133 B
Go
Raw Normal View History

//go:build !go1.20
package bencode
import "unsafe"
func bytesAsString(b []byte) string {
return *(*string)(unsafe.Pointer(&b))
}