typedarray

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotAUint8Array ErrNotAUint8Array error
	ErrNotAUint8Array                  = errors.New("Object is not a Uint8Array")
	ErrNotImplementedUint8Array        = errors.New("Browser not implemented Uint8Array")
	ErrNotAUint8ClampedArray           = errors.New("Object is not a Uint8ClampedArray")
	ErrNotImplementedUint8ClampedArray = errors.New("Browser not implemented Uint8ClampedArray")
	ErrNotAInt8Array                   = errors.New("Object is not a Int8Array")
	ErrNotImplementedInt8Array         = errors.New("Browser not implemented Int8Array")
	ErrNotAUint16Array                 = errors.New("Object is not a Uint16Array")
	ErrNotImplementedUint16Array       = errors.New("Browser not implemented Uint16Array")
	ErrNotAInt16Array                  = errors.New("Object is not a Int16Array")
	ErrNotImplementedInt16Array        = errors.New("Browser not implemented Int16Array")
	ErrNotAInt32Array                  = errors.New("Object is not a Int32Array")
	ErrNotImplementedInt32Array        = errors.New("Browser not implemented Int32Array")
	ErrNotAUint32Array                 = errors.New("Object is not a Uint32Array")
	ErrNotImplementedUint32Array       = errors.New("Browser not implemented Uint32Array")
	ErrNotAFloat32Array                = errors.New("Object is not a Float32Array")
	ErrNotImplementedFloat32Array      = errors.New("Browser not implemented Float32Array")
	ErrNotAFloat64Array                = errors.New("Object is not a Float64Array")
	ErrNotImplementedFloat64Array      = errors.New("Browser not implemented Float64Array")
)
View Source
var Float32arrayinterface js.Value
View Source
var Float64arrayinterface js.Value

Functions

func GetFloat32ArrayInterface

func GetFloat32ArrayInterface() js.Value

GetFloat32ArrayInterface get the JS interface of Float32Array

func GetFloat64ArrayInterface

func GetFloat64ArrayInterface() js.Value

GetFloat64ArrayInterface get the JS interface of Float64Array

func GetInt16ArrayInterface

func GetInt16ArrayInterface() js.Value

GetInt16ArrayInterface get the JS interface of Int16Array

func GetInt32ArrayInterface

func GetInt32ArrayInterface() js.Value

GetInt32ArrayInterface get the JS interface of Int32Array

func GetInt8ArrayInterface

func GetInt8ArrayInterface() js.Value

GetInterface get the JS interface

func GetUint16ArrayInterface

func GetUint16ArrayInterface() js.Value

GetInterface get the JS interface

func GetUint32ArrayInterface

func GetUint32ArrayInterface() js.Value

GetInterface get the JS interface

func GetUint8ArrayInterface

func GetUint8ArrayInterface() js.Value

GetInterface get the JS interface

func GetUint8ClampedArrayInterface

func GetUint8ClampedArrayInterface() js.Value

GetUint8ClampedArrayInterface get the JS interface of GetUint8ClampedArrayInterface

Types

type Float32Array

type Float32Array struct {
	TypedArray
}

Float32Array struct

func NewFloat32Array

func NewFloat32Array(value interface{}) (Float32Array, error)

func NewFloat32ArrayFrom

func NewFloat32ArrayFrom(iterable interface{}) (Float32Array, error)

func NewFloat32ArrayOf

func NewFloat32ArrayOf(values ...interface{}) (Float32Array, error)

func NewFloat32FromJSObject

func NewFloat32FromJSObject(obj js.Value) (Float32Array, error)

func (Float32Array) Float32Array_

func (u Float32Array) Float32Array_() Float32Array

type Float32ArrayFrom

type Float32ArrayFrom interface {
	Float32Array_() Float32Array
}

type Float64Array

type Float64Array struct {
	TypedArray
}

Float64Array struct

func NewFloat64Array

func NewFloat64Array(value interface{}) (Float64Array, error)

func NewFloat64ArrayFrom

func NewFloat64ArrayFrom(iterable interface{}) (Float64Array, error)

func NewFloat64ArrayOf

func NewFloat64ArrayOf(values ...interface{}) (Float64Array, error)

func NewFloat64FromJSObject

func NewFloat64FromJSObject(obj js.Value) (Float64Array, error)

func (Float64Array) Float64Array_

func (u Float64Array) Float64Array_() Float64Array

type Float64ArrayFrom

type Float64ArrayFrom interface {
	Float64Array_() Float64Array
}

type Int16Array

type Int16Array struct {
	TypedArray
}

Int16Array struct

func NewInt16Array

func NewInt16Array(value interface{}) (Int16Array, error)

func NewInt16ArrayFrom

func NewInt16ArrayFrom(iterable interface{}) (Int16Array, error)

func NewInt16ArrayOf

func NewInt16ArrayOf(values ...interface{}) (Int16Array, error)

func NewInt16FromJSObject

func NewInt16FromJSObject(obj js.Value) (Int16Array, error)

func (Int16Array) Int16Array_

func (u Int16Array) Int16Array_() Int16Array

type Int16ArrayFrom

type Int16ArrayFrom interface {
	Int16Array_() Int16Array
}

type Int32Array

type Int32Array struct {
	TypedArray
}

Int32Array struct

func NewInt32Array

func NewInt32Array(value interface{}) (Int32Array, error)

func NewInt32ArrayFrom

func NewInt32ArrayFrom(iterable interface{}) (Int32Array, error)

func NewInt32ArrayOf

func NewInt32ArrayOf(values ...interface{}) (Int32Array, error)

func NewInt32FromJSObject

func NewInt32FromJSObject(obj js.Value) (Int32Array, error)

func (Int32Array) Int32Array_

func (u Int32Array) Int32Array_() Int32Array

type Int32ArrayFrom

type Int32ArrayFrom interface {
	Int32Array_() Int32Array
}

type Int8Array

type Int8Array struct {
	TypedArray
}

Uint8Array struct

func NewInt8Array

func NewInt8Array(value interface{}) (Int8Array, error)

func NewInt8ArrayFrom

func NewInt8ArrayFrom(iterable interface{}) (Int8Array, error)

func NewInt8ArrayOf

func NewInt8ArrayOf(values ...interface{}) (Int8Array, error)

func NewInt8FromJSObject

func NewInt8FromJSObject(obj js.Value) (Int8Array, error)

func (Int8Array) Int8Array_

func (a Int8Array) Int8Array_() Int8Array

type Int8ArrayFrom

type Int8ArrayFrom interface {
	Uint8Array_() Uint8Array
}

type TypedArray

type TypedArray struct {
	array.Array
}

TypedArray struct

func (TypedArray) BYTES_PER_ELEMENT

func (t TypedArray) BYTES_PER_ELEMENT() (int, error)

func (TypedArray) Buffer

func (t TypedArray) Buffer() (arraybuffer.ArrayBuffer, error)

func (TypedArray) ByteLength

func (t TypedArray) ByteLength() (int64, error)

func (TypedArray) ByteOffset

func (t TypedArray) ByteOffset() (int64, error)

func (TypedArray) Bytes

func (t TypedArray) Bytes() ([]byte, error)

func (TypedArray) CopyBytes

func (t TypedArray) CopyBytes(buffer []byte) (int, error)

func (TypedArray) CopyFromBytes

func (t TypedArray) CopyFromBytes(buffer []byte) (int, error)

func (TypedArray) Subarray

func (t TypedArray) Subarray(opts ...int) (interface{}, error)

func (TypedArray) TypedArray_

func (t TypedArray) TypedArray_() TypedArray

type TypedArrayFrom

type TypedArrayFrom interface {
	TypedArray_() TypedArray
}

type Uint16Array

type Uint16Array struct {
	TypedArray
}

Uint16Array struct

func NewUint16Array

func NewUint16Array(value interface{}) (Uint16Array, error)

func NewUint16ArrayFrom

func NewUint16ArrayFrom(iterable interface{}) (Uint16Array, error)

func NewUint16ArrayOf

func NewUint16ArrayOf(values ...interface{}) (Uint16Array, error)

func NewUint16FromJSObject

func NewUint16FromJSObject(obj js.Value) (Uint16Array, error)

func (Uint16Array) Uint16Array_

func (u Uint16Array) Uint16Array_() Uint16Array

type Uint16ArrayFrom

type Uint16ArrayFrom interface {
	Uint16Array_() Uint16Array
}

type Uint32Array

type Uint32Array struct {
	TypedArray
}

Uint32Array struct

func NewUint32Array

func NewUint32Array(value interface{}) (Uint32Array, error)

func NewUint32ArrayFrom

func NewUint32ArrayFrom(iterable interface{}) (Uint32Array, error)

func NewUint32ArrayOf

func NewUint32ArrayOf(values ...interface{}) (Uint32Array, error)

func NewUint32FromJSObject

func NewUint32FromJSObject(obj js.Value) (Uint32Array, error)

func (Uint32Array) Uint32Array_

func (u Uint32Array) Uint32Array_() Uint32Array

type Uint32ArrayFrom

type Uint32ArrayFrom interface {
	Uint32Array_() Uint32Array
}

type Uint8Array

type Uint8Array struct {
	TypedArray
}

Uint8Array struct

func NewUint8Array

func NewUint8Array(value interface{}) (Uint8Array, error)

func NewUint8ArrayFrom

func NewUint8ArrayFrom(iterable interface{}) (Uint8Array, error)

func NewUint8ArrayOf

func NewUint8ArrayOf(values ...interface{}) (Uint8Array, error)

func NewUint8FromJSObject

func NewUint8FromJSObject(obj js.Value) (Uint8Array, error)

func (Uint8Array) Uint8Array_

func (u Uint8Array) Uint8Array_() Uint8Array

type Uint8ArrayFrom

type Uint8ArrayFrom interface {
	Uint8Array_() Uint8Array
}

type Uint8ClampedArray

type Uint8ClampedArray struct {
	TypedArray
}

Uint8ClampedArray struct

func NewUint8ClampedArray

func NewUint8ClampedArray(value interface{}) (Uint8ClampedArray, error)

func NewUint8ClampedArrayFrom

func NewUint8ClampedArrayFrom(iterable interface{}) (Uint8ClampedArray, error)

func NewUint8ClampedArrayOf

func NewUint8ClampedArrayOf(values ...interface{}) (Uint8ClampedArray, error)

func NewUint8ClampedFromJSObject

func NewUint8ClampedFromJSObject(obj js.Value) (Uint8ClampedArray, error)

func (Uint8ClampedArray) Uint8ClampedArray_

func (u Uint8ClampedArray) Uint8ClampedArray_() Uint8ClampedArray

type Uint8ClampedArrayFrom

type Uint8ClampedArrayFrom interface {
	Uint8ClampedArray_() Uint8ClampedArray
}

Jump to

Keyboard shortcuts

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