mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 13:15:17 +03:00
33ee7b247d
* Go 1.13 related fixes for js/wasm * fix windows docker deployment issue * new 3rdparty/UGlobalHotkey example * fix webengine module on arch linux * support for the prebuilt Qt wasm builds * make use of -trimpath if available * bump Go version in docker images to 1.12.9
18 lines
257 B
Go
18 lines
257 B
Go
// +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) {}
|