Source File
unsafe.go
Belonging Package
github.com/vmihailenco/msgpack/v5
// +build !appengine
package msgpack
import (
)
// bytesToString converts byte slice to string.
func ( []byte) string {
return *(*string)(unsafe.Pointer(&))
}
// stringToBytes converts string to byte slice.
func ( string) []byte {
return *(*[]byte)(unsafe.Pointer(
&struct {
string
int
}{, len()},
))
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)