matterbridge/vendor/github.com/philhofer/fwd/writer_tinygo.go
Wim c4157a4d5b
Update dependencies (#2180)
* Update dependencies

* Fix whatsmeow API changes
2024-08-27 19:04:05 +02:00

14 lines
190 B
Go

//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))
}