2
0
mirror of synced 2025-02-24 06:38:14 +00:00
torrent/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))
}