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 ¶
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) CopyFromBytes ¶
func (u Uint8Array) CopyFromBytes(buffer []byte) (int, error)
func (Uint8Array) Uint8Array_ ¶
func (u Uint8Array) Uint8Array_() Uint8Array
type Uint8ArrayFrom ¶
type Uint8ArrayFrom interface {
Uint8Array_() Uint8Array
}
Click to show internal directories.
Click to hide internal directories.