Documentation ¶
Overview ¶
Package jsutil offers utility functions for Wasm.
Index ¶
- func TemporaryFloat32Array(minLength int, data []float32) js.Value
- func TemporaryInt32Array(minLength int, data []int32) js.Value
- func TemporaryUint8ArrayFromFloat32Slice(minLength int, data []float32) js.Value
- func TemporaryUint8ArrayFromUint16Slice(minLength int, data []uint16) js.Value
- func TemporaryUint8ArrayFromUint8Slice(minLength int, data []uint8) js.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TemporaryFloat32Array ¶ added in v2.1.0
TemporaryFloat32Array returns a Float32Array whose length is at least minLength. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.
func TemporaryInt32Array ¶ added in v2.5.0
TemporaryInt32Array returns a Int32Array whose length is at least minLength. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.
func TemporaryUint8ArrayFromFloat32Slice ¶ added in v2.3.0
TemporaryUint8ArrayFromFloat32Slice returns a Uint8Array whose length is at least minLength from a float32 slice. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.
func TemporaryUint8ArrayFromUint16Slice ¶ added in v2.3.0
TemporaryUint8ArrayFromUint16Slice returns a Uint8Array whose length is at least minLength from a uint16 slice. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.
func TemporaryUint8ArrayFromUint8Slice ¶ added in v2.3.0
TemporaryUint8ArrayFromUint8Slice returns a Uint8Array whose length is at least minLength from a uint8 slice. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.
Types ¶
This section is empty.