package typedarray
ECMAScript 6 The typdearray package provides facade types for JavaScript ArrayBuffer, TypeArrays and DataView. Further, it provides conversions between primitive Scala arrays and TypedArrays
- Alphabetic
- By Inheritance
- typedarray
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit final
class
AB2TA extends AnyVal
ECMAScript 6 Adds
toTypedArray
conversion to anArray[Byte]
-
implicit final
class
AC2TA extends AnyVal
ECMAScript 6 Adds
toTypedArray
conversion to anArray[Char]
-
implicit final
class
AD2TA extends AnyVal
ECMAScript 6 Adds
toTypedArray
conversion to anArray[Double]
-
implicit final
class
AF2TA extends AnyVal
ECMAScript 6 Adds
toTypedArray
conversion to anArray[Float]
-
implicit final
class
AI2TA extends AnyVal
ECMAScript 6 Adds
toTypedArray
conversion to anArray[Int]
-
implicit final
class
AS2TA extends AnyVal
ECMAScript 6 Adds
toTypedArray
conversion to anArray[Short]
-
class
ArrayBuffer extends Object
ECMAScript 6 An ArrayBuffer is a block of contiguous, non-resizable memory.
-
class
ArrayBufferInputStream extends InputStream
ECMAScript 6 A java.io.InputStream wrapping a JavaScript ArrayBuffer
ECMAScript 6 A java.io.InputStream wrapping a JavaScript ArrayBuffer
This class is extremely similar to a ByteArrayInputStream, but uses ArrayBuffers as the underlying representation. Stream implementations may special case on this stream for better performance and access the underlying buffer directly. (They still need to make sure the internal pointers are properly aligned though).
This stream has several public members (n.b. buffer, offset, length and pos) in order to allow JavaScript aware applications to special case on this kind of stream and access the underlying ArrayBuffer directly for efficiency. In this case it is the client's responsibility to synchronize pos, as if the stream were read normally (if the context in which it is used requires this).
-
trait
ArrayBufferView extends Object
ECMAScript 6 An ArrayBufferView allows accessing the data of an ArrayBuffer
ECMAScript 6 An ArrayBufferView allows accessing the data of an ArrayBuffer
- Annotations
- @JSType() @native()
-
class
DataView extends Object with ArrayBufferView
ECMAScript 6 A DataView allows for extraction of particular data types at specific offsets.
-
class
Float32Array extends Object with TypedArray[Float, Float32Array]
ECMAScript 6 A TypedArray of single precision floats
ECMAScript 6 A TypedArray of single precision floats
-
class
Float64Array extends Object with TypedArray[Double, Float64Array]
ECMAScript 6 A TypedArray of double precision floats
ECMAScript 6 A TypedArray of double precision floats
-
class
Int16Array extends Object with TypedArray[Short, Int16Array]
ECMAScript 6 A TypedArray of signed 16-bit integers
ECMAScript 6 A TypedArray of signed 16-bit integers
-
class
Int32Array extends Object with TypedArray[Int, Int32Array]
ECMAScript 6 A TypedArray of signed 32-bit integers
ECMAScript 6 A TypedArray of signed 32-bit integers
-
class
Int8Array extends Object with TypedArray[Byte, Int8Array]
ECMAScript 6 A TypedArray of signed 8-bit integers
ECMAScript 6 A TypedArray of signed 8-bit integers
-
implicit final
class
TA2AB extends AnyVal
ECMAScript 6 Adds
toArray
conversion to a Int8Array -
implicit final
class
TA2AC extends AnyVal
ECMAScript 6 Adds
toArray
conversion to a Uint16Array -
implicit final
class
TA2AD extends AnyVal
ECMAScript 6 Adds
toArray
conversion to a Float64Array -
implicit final
class
TA2AF extends AnyVal
ECMAScript 6 Adds
toArray
conversion to a Float32Array -
implicit final
class
TA2AI extends AnyVal
ECMAScript 6 Adds
toArray
conversion to a Int32Array -
implicit final
class
TA2AS extends AnyVal
ECMAScript 6 Adds
toArray
conversion to a Int16Array -
trait
TypedArray[T, Repr] extends Object with ArrayBufferView with Iterable[T]
ECMAScript 6 A TypedArray allows to view an ArrayBuffer as an array of values of a particular numeric type.
ECMAScript 6 A TypedArray allows to view an ArrayBuffer as an array of values of a particular numeric type.
- Annotations
- @JSType() @native()
-
final
class
TypedArrayBufferOps[TypedArrayType <: TypedArray[_, TypedArrayType]] extends AnyVal
Additional operations on a Buffer with interoperability with JavaScript Typed Arrays.
-
trait
TypedArrayStatic extends Object
ECMAScript 6 Static information that exists for any concrete TypedArray
ECMAScript 6 Static information that exists for any concrete TypedArray
- Annotations
- @JSType() @native()
-
class
Uint16Array extends Object with TypedArray[Int, Uint16Array]
ECMAScript 6 A TypedArray of unsigned 16-bit integers
ECMAScript 6 A TypedArray of unsigned 16-bit integers
-
class
Uint32Array extends Object with TypedArray[Double, Uint32Array]
ECMAScript 6 A TypedArray of unsigned 32-bit integers
ECMAScript 6 A TypedArray of unsigned 32-bit integers
-
class
Uint8Array extends Object with TypedArray[Short, Uint8Array]
ECMAScript 6 A TypedArray of unsigned 8-bit integers
ECMAScript 6 A TypedArray of unsigned 8-bit integers
-
class
Uint8ClampedArray extends Object with TypedArray[Int, Uint8ClampedArray]
ECMAScript 6 A TypedArray of unsigned 8-bit integers whose values are clamped to their max/min rather than wrapped around if they overflow.
ECMAScript 6 A TypedArray of unsigned 8-bit integers whose values are clamped to their max/min rather than wrapped around if they overflow.
Value Members
- def byteArray2Int8Array(array: scala.Array[Byte]): Int8Array
- def charArray2Uint16Array(array: scala.Array[Char]): Uint16Array
- def doubleArray2Float64Array(array: scala.Array[Double]): Float64Array
- def float32Array2FloatArray(array: Float32Array): scala.Array[Float]
- def float64Array2DoubleArray(array: Float64Array): scala.Array[Double]
- def floatArray2Float32Array(array: scala.Array[Float]): Float32Array
- def int16Array2ShortArray(array: Int16Array): scala.Array[Short]
- def int32Array2IntArray(array: Int32Array): scala.Array[Int]
- def int8Array2ByteArray(array: Int8Array): scala.Array[Byte]
- def intArray2Int32Array(array: scala.Array[Int]): Int32Array
- def shortArray2Int16Array(array: scala.Array[Short]): Int16Array
- def uint16Array2CharArray(array: Uint16Array): scala.Array[Char]
-
object
DataViewExt
Extensions for DataView.
-
object
Float32Array extends Object with TypedArrayStatic
ECMAScript 6 Float32Array companion
ECMAScript 6 Float32Array companion
-
object
Float64Array extends Object with TypedArrayStatic
ECMAScript 6 Float64Array companion
ECMAScript 6 Float64Array companion
-
object
Int16Array extends Object with TypedArrayStatic
ECMAScript 6 Int16Array companion
ECMAScript 6 Int16Array companion
-
object
Int32Array extends Object with TypedArrayStatic
ECMAScript 6 Int32Array companion
ECMAScript 6 Int32Array companion
-
object
Int8Array extends Object with TypedArrayStatic
ECMAScript 6 Int8Array companion
-
object
TypedArrayBuffer
Factory methods to create direct buffers from Typed Arrays.
Factory methods to create direct buffers from Typed Arrays.
All buffers created by the methods of this object are direct buffers with the native byte order of the platform.
-
object
TypedArrayBufferOps
Extensions to Buffers for interoperability with JavaScript Typed Arrays.
-
object
Uint16Array extends Object with TypedArrayStatic
ECMAScript 6 Uint16Array companion
ECMAScript 6 Uint16Array companion
-
object
Uint32Array extends Object with TypedArrayStatic
ECMAScript 6 Uint32Array companion
ECMAScript 6 Uint32Array companion
-
object
Uint8Array extends Object with TypedArrayStatic
ECMAScript 6 Uint8Array companion
ECMAScript 6 Uint8Array companion
-
object
Uint8ClampedArray extends Object with TypedArrayStatic
ECMAScript 6 Uint8ClampedArray companion
ECMAScript 6 Uint8ClampedArray companion