jsutil

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package jsutil offers utility functions for Wasm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemporaryFloat32Array added in v2.1.0

func TemporaryFloat32Array(minLength int, data interface{}) js.Value

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 TemporaryUint8Array

func TemporaryUint8Array(minLength int, data interface{}) js.Value

TemporaryUint8Array returns a Uint8Array 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 Uint8ArrayToSlice

func Uint8ArrayToSlice(value js.Value, length int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL