W3cubDocs

/Haxe JavaScript

Uint16Array

package js.html

extends ArrayBufferView

@:native("Uint16Array") Available on js

Constructor

new (buffer:ArrayBuffer, ?byteOffset:Int, ?length:Int)

new (length:Int)

new (array:Uint16Array)

new (array:Array<Int>)

Throws:

null DOMError

Variables

read only length:Int

Methods

set (array:Array<Int>, ?offset:Int):Void

set (array:Uint16Array, ?offset:Int):Void

subarray (start:Int, ?end:Int):Uint16Array

Static variables

@:value(2) static inline read only BYTES_PER_ELEMENT:Int = 2

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