File: writer_tinygo.go

package info (click to toggle)
golang-github-philhofer-fwd 1.1.2%2Bgit20240916.20a13a1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 190 bytes parent folder | download
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))
}