W3cubDocs

/Haxe

ArrayBufferView(ArrayBufferViewData)

package haxe.io

Available on all platforms

Constructor

@:impl inline new (size:Int)

Variables

@:impl read only buffer:Bytes

@:impl read only byteLength:Int

@:impl read only byteOffset:Int

Methods

@:impl inline getData ():ArrayBufferViewData

@:impl inline sub (this:ArrayBufferViewData, begin:Int):ArrayBufferView

@:impl inline subarray (this:ArrayBufferViewData, ?begin:Int):ArrayBufferView

Available on cpp, cs, flash, hl, java, lua, macro, neko, php, python

Static variables

static read only EMULATED:Bool

On some platforms configurations (for instance JS with no TypedArray support as in IE8-), Haxe will try to emulate the array buffers API. However in that case memory sharing will not be supported : each typed array or will copy its own data set. This flag allows users to detect if we are doing such emulation. At the moment only JavaScript is concerned.

static read only EMULATED:Bool

On some platforms configurations (for instance JS with no TypedArray support as in IE8-), Haxe will try to emulate the array buffers API. However in that case memory sharing will not be supported : each typed array or will copy its own data set. This flag allows users to detect if we are doing such emulation. At the moment only JavaScript is concerned.

@:impl static read only buffer:Bytes

@:impl static read only byteLength:Int

@:impl static read only byteOffset:Int

Static methods

@:impl static inline new (size:Int)

@:value({ pos : 0 }) static fromBytes (bytes:Bytes, pos:Int = 0, ?length:Int):ArrayBufferView

Available on cpp, cs, flash, hl, java, lua, macro, neko, php, python

@:value({ pos : 0 }) static fromBytes (bytes:Bytes, pos:Int = 0, ?length:Int):ArrayBufferView

Available on cpp, cs, flash, hl, java, lua, macro, neko, php, python

static inline fromData (a:ArrayBufferViewData):ArrayBufferView

static inline fromData (a:ArrayBufferViewData):ArrayBufferView

@:impl static inline getData ():ArrayBufferViewData

@:impl static inline sub (this:ArrayBufferViewData, begin:Int):ArrayBufferView

@:impl static inline subarray (this:ArrayBufferViewData, ?begin:Int):ArrayBufferView

Available on cpp, cs, flash, hl, java, lua, macro, neko, php, python

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/io/ArrayBufferView.html