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