2024-05-24 14:08:09 -07:00
|
|
|
//go:build tinygo
|
|
|
|
// +build tinygo
|
|
|
|
|
|
|
|
package fwd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
// unsafe cast string as []byte
|
|
|
|
func unsafestr(b string) []byte {
|
2024-08-27 10:04:05 -07:00
|
|
|
return unsafe.Slice(unsafe.StringData(b), len(b))
|
2024-05-24 14:08:09 -07:00
|
|
|
}
|