Files
William Gill caab555275
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m3s
Create Release & Upload Assets / Build Container Image (push) Failing after 1m6s
Puuuussshhh
2025-10-11 03:41:01 +00:00

12 lines
285 B
Go

//go:build go1.20
package fasthttp
import "unsafe"
// b2s converts byte slice to a string without memory allocation.
// See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
func b2s(b []byte) string {
return unsafe.String(unsafe.SliceData(b), len(b))
}