Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ERR_ARRAYBUFFER_UNSUPPORTED = errors.New("ArrayBuffer unsupported")
Functions ¶
func IsArrayBufferSupported ¶
func IsArrayBufferSupported() bool
Types ¶
type ArrayBuffer ¶
func NewArrayBuffer ¶
func NewArrayBuffer(length int) (*ArrayBuffer, error)
func NewArrayBufferFromJSValue ¶
func NewArrayBufferFromJSValue(jsvalue js.Value) (*ArrayBuffer, error)
func (*ArrayBuffer) Len ¶
func (self *ArrayBuffer) Len() (int, error)
func (*ArrayBuffer) MakeReader ¶
func (self *ArrayBuffer) MakeReader() (*ArrayBufferReader, error)
func (*ArrayBuffer) Slice ¶
func (self *ArrayBuffer) Slice( begin int, end *int, contentType *string, ) (*ArrayBuffer, error)
TODO: maybe int64 is better solution, but I'm not sure
type ArrayBufferReader ¶
type ArrayBufferReader struct { EOF bool // contains filtered or unexported fields }
func NewArrayBufferReader ¶
func NewArrayBufferReader(ab *ArrayBuffer) (*ArrayBufferReader, error)
Click to show internal directories.
Click to hide internal directories.