3 Star 1 Fork 0

听我一言 / qt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
qt_wasm_113.go 257 Bytes
一键复制 编辑 原始数据 按行查看 历史
// +build js,wasm
// +build go1.13
package qt
import (
"syscall/js"
"unsafe"
)
func TypedArrayOf(src []byte) js.Value {
dst := Global.Get("Uint8Array").New(len(src))
js.CopyBytesToJS(dst, src)
return dst
}
func ReleaseTypedArray(unsafe.Pointer) {}
1
https://gitee.com/xuyanhui_halo/qt.git
git@gitee.com:xuyanhui_halo/qt.git
xuyanhui_halo
qt
qt
master

搜索帮助