]> Sergey Matveev's repositories - btrtrc.git/blob - bencode/string_go120.go
Fix test failure using missinggo filecache on Windows
[btrtrc.git] / bencode / string_go120.go
1 //go:build go1.20
2
3 package bencode
4
5 import "unsafe"
6
7 func bytesAsString(b []byte) string {
8         return unsafe.String(unsafe.SliceData(b), len(b))
9 }