]> Sergey Matveev's repositories - btrtrc.git/blob - bencode/string.go
Update logger usage for received reject messages
[btrtrc.git] / bencode / string.go
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 }