Documentation
¶
Index ¶
- type Buffer
- func (a Buffer) BigInt64Array() TypedArray
- func (a Buffer) BigUint64Array() TypedArray
- func (a Buffer) ByteLength() int
- func (a Buffer) CopyBytes() ([]byte, error)
- func (a Buffer) Float32Array() TypedArray
- func (a Buffer) Float64Array() TypedArray
- func (a Buffer) Int16Array() TypedArray
- func (a Buffer) Int32Array() TypedArray
- func (a Buffer) Int8Array() TypedArray
- func (a Buffer) JSValue() js.Value
- func (a Buffer) Uint16Array() TypedArray
- func (a Buffer) Uint32Array() TypedArray
- func (a Buffer) Uint8Array() TypedArray
- func (a Buffer) Write(p []byte) (n int, err error)
- type TypedArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
Buffer is a JS ArrayBuffer.
func CreateBufferFromSlice ¶
CreateBufferFromSlice copies and creates a read only Buffer buffer.
func (Buffer) BigInt64Array ¶
func (a Buffer) BigInt64Array() TypedArray
BigInt64Array view over the array.
func (Buffer) BigUint64Array ¶
func (a Buffer) BigUint64Array() TypedArray
BigUint64Array view over the array.
func (Buffer) ByteLength ¶
ByteLength returns the length of byte array.
func (Buffer) Float32Array ¶
func (a Buffer) Float32Array() TypedArray
Float32Array view over the array buffer.
func (Buffer) Float64Array ¶
func (a Buffer) Float64Array() TypedArray
Float64Array view over the array buffer.
func (Buffer) Uint16Array ¶
func (a Buffer) Uint16Array() TypedArray
Uint16Array view over the array buffer.
func (Buffer) Uint32Array ¶
func (a Buffer) Uint32Array() TypedArray
Uint32Array view over the array buffer.
func (Buffer) Uint8Array ¶
func (a Buffer) Uint8Array() TypedArray
Uint8Array view over the array buffer.
type TypedArray ¶
TypedArray is a JS wrapper for typed array.
func CreateTypedArrayFromSlice ¶
func CreateTypedArrayFromSlice(s interface{}) (TypedArray, error)
CreateTypedArrayFromSlice copies and creates a read only ArrayBuffer buffer.
func (TypedArray) Buffer ¶
func (a TypedArray) Buffer() js.Value
Buffer returns the underlying ArrayBuffer.
func (TypedArray) ByteLength ¶
func (a TypedArray) ByteLength() int
ByteLength returns the length of underlying data.
func (TypedArray) CopyBytes ¶
func (a TypedArray) CopyBytes() ([]byte, error)
CopyBytes copies out bytes from js typed array.
func (TypedArray) JSValue ¶
func (a TypedArray) JSValue() js.Value
JSValue returns the underlying js value.