summaryrefslogtreecommitdiff
path: root/vendor/github.com/philhofer/fwd/writer_tinygo.go
blob: c98cd57f3c9af29b615d399537ff11000ca98f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//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))
}