matterbridge/vendor/github.com/philhofer/fwd/writer_tinygo.go

14 lines
190 B
Go
Raw Normal View History

//go:build tinygo
// +build tinygo
package fwd
import (
"unsafe"
)
// unsafe cast string as []byte
func unsafestr(b string) []byte {
return unsafe.Slice(unsafe.StringData(b), len(b))
}