ArrayBuffer

@native @JSType trait ArrayBuffer extends StObject

Represents a raw buffer of binary data, which is used to store data for the different typed arrays. ArrayBuffers cannot be read from or written to directly, but can be passed to a typed array or DataView Object to interpret the raw buffer as needed.

trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def slice(begin: Double): ArrayBuffer

Returns a section of an ArrayBuffer.

Returns a section of an ArrayBuffer.

def slice(begin: Double, end: Double): ArrayBuffer

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val byteLength: Double

Read-only. The length of the ArrayBuffer (in bytes).

Read-only. The length of the ArrayBuffer (in bytes).

@JSName
val toStringTag: String