FedP2P/bencode/string_go120.go

10 lines
144 B
Go
Raw Normal View History

//go:build go1.20
package bencode
import "unsafe"
func bytesAsString(b []byte) string {
return unsafe.String(unsafe.SliceData(b), len(b))
}