blob: b8b8160c5f8673e67a624430ef1841db7496a872 (
plain) (
tree)
|
|
package scala.scalajs.js.typedarray
import scala.scalajs.js
class ArrayBuffer(length: Int) extends js.Object {
/** Length of this buffer in bytes */
val byteLength: Int = js.native
/** Returns a copy of the given slice of this array buffer */
def slice(begin: Int, end: Int = ???): ArrayBuffer = js.native
// Note: Some specifications specify a static isView method on ArrayBuffer
// that checks whether a given object is an ArrayBufferView. We omit it here
// since neither Node.js nor PhantomJS support it at the time of writing.
}
|