uint8array

package
v1.0.0-rc5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotAUint8Array ErrNotAnBlob error
	ErrNotAUint8Array = errors.New("Object is not a Uint8Array")
	ErrNotImplemented = errors.New("Browser not implemented Uint8Array")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get teh JS interface of broadcast channel

Types

type Uint8Array

type Uint8Array struct {
	baseobject.BaseObject
}

Uint8Array struct

func NewFromArrayBuffer

func NewFromArrayBuffer(a arraybuffer.ArrayBuffer) (Uint8Array, error)

func NewFromJSObject

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

func (Uint8Array) ArrayBuffer

func (u Uint8Array) ArrayBuffer() (arraybuffer.ArrayBuffer, error)

func (Uint8Array) Bytes

func (u Uint8Array) Bytes() ([]byte, error)

func (Uint8Array) CopyBytes

func (u Uint8Array) CopyBytes(buffer []byte) (int, error)

func (Uint8Array) CopyFromBytes

func (u Uint8Array) CopyFromBytes(buffer []byte) (int, error)

func (Uint8Array) Uint8Array_

func (u Uint8Array) Uint8Array_() Uint8Array

type Uint8ArrayFrom

type Uint8ArrayFrom interface {
	Uint8Array_() Uint8Array
}

Jump to

Keyboard shortcuts

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