arraybuffer

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: 5 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 the JS interface ArrayBuffer

func IsView

func IsView(i interface{}) (bool, error)

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() (int64, error)

func (ArrayBuffer) ByteLength_

func (a ArrayBuffer) ByteLength_() int64

func (ArrayBuffer) Slice

func (a ArrayBuffer) Slice(begin int, end ...int) (ArrayBuffer, 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