mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
edec032ae6
Now that syscall/js.TypedArrayOf is going away in Go 1.13 (sse https://golang.org/issue/31980), copying byte slices to JS before use is necessary. To avoid garbage, re-use a single buffer for all transfers. Signed-off-by: Elias Naur <mail@eliasnaur.com>