arraybuffer

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAnArrayBuffer = errors.New("The given value must be an arrayBuffer")
	ErrNotImplemented   = errors.New("Browser not implemented Arraybuffer")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get teh JS interface of broadcast channel

Types

type ArrayBuffer

type ArrayBuffer struct {
	baseobject.BaseObject
}

ArrayBuffer struct

func New

func New(size int) (ArrayBuffer, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (ArrayBuffer, error)

func (ArrayBuffer) ArrayBuffer

func (a ArrayBuffer) ArrayBuffer() ArrayBuffer

func (ArrayBuffer) ByteLength

func (a ArrayBuffer) ByteLength() (int, error)

type ArrayBufferFrom

type ArrayBufferFrom interface {
	ArrayBuffer() ArrayBuffer
}

Jump to

Keyboard shortcuts

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