-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-wasmWebAssembly issuesWebAssembly issues
Description
As TypedArray
no longer exists as of Go 1.13, there is no way to convert slices other than []byte
from/to TypedArray objects other than Uint8Array
. It is technically possible to do this by using encoding/binary
, but I'm worried this conversion is not efficient.
As there are Web APIs that take such TypedArray objects (e.g., AudioBuffer.copyToChannel
takes a Float32Array
[1]), it would be very useful if syscall/js
had such conversion functions.
CC @neelance
[1] https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel
justinclift, Noofbiz, OneOfOne, dennwc, jancona and 2 more
Metadata
Metadata
Assignees
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-wasmWebAssembly issuesWebAssembly issues