final class TypedArrayBufferOps[TypedArrayType <: TypedArray[_, TypedArrayType]] extends AnyVal
Additional operations on a Buffer with interoperability with JavaScript Typed Arrays.
All Scala.js implementations of Buffer also implement this interface for some TypedArrayType, which depends on the type of elements in the buffer.
- Alphabetic
- By Inheritance
- TypedArrayBufferOps
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to any2stringadd[TypedArrayBufferOps[TypedArrayType]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (TypedArrayBufferOps[TypedArrayType], B)
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to ArrowAssoc[TypedArrayBufferOps[TypedArrayType]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- Any
-
def
arrayBuffer(): ArrayBuffer
ArrayBuffer backing this buffer _(optional operation)_.
ArrayBuffer backing this buffer _(optional operation)_.
- Exceptions thrown
UnsupportedOperationException
If this buffer has no backing ArrayBuffer, i.e., !hasArrayBuffer()
-
def
arrayBufferOffset(): Int
Byte offset in the associated ArrayBuffer _(optional operation)_.
Byte offset in the associated ArrayBuffer _(optional operation)_.
- Exceptions thrown
UnsupportedOperationException
If this buffer has no backing ArrayBuffer, i.e., !hasArrayBuffer()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
dataView(): DataView
DataView of the backing ArrayBuffer _(optional operation)_.
DataView of the backing ArrayBuffer _(optional operation)_.
The DataView is sliced to the portion of the ArrayBuffer seen by this Buffer.
- Exceptions thrown
UnsupportedOperationException
If this buffer has no backing ArrayBuffer, i.e., !hasArrayBuffer()
-
def
ensuring(cond: (TypedArrayBufferOps[TypedArrayType]) ⇒ Boolean, msg: ⇒ scala.Any): TypedArrayBufferOps[TypedArrayType]
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to Ensuring[TypedArrayBufferOps[TypedArrayType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (TypedArrayBufferOps[TypedArrayType]) ⇒ Boolean): TypedArrayBufferOps[TypedArrayType]
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to Ensuring[TypedArrayBufferOps[TypedArrayType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ scala.Any): TypedArrayBufferOps[TypedArrayType]
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to Ensuring[TypedArrayBufferOps[TypedArrayType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): TypedArrayBufferOps[TypedArrayType]
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to Ensuring[TypedArrayBufferOps[TypedArrayType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to StringFormat[TypedArrayBufferOps[TypedArrayType]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
hasArrayBuffer(): Boolean
Tests whether this buffer has a valid associated ArrayBuffer.
Tests whether this buffer has a valid associated ArrayBuffer.
This is true iff the buffer is direct and not read-only.
-
def
hasTypedArray(): Boolean
Tests whether this direct buffer has a valid associated TypedArray.
Tests whether this direct buffer has a valid associated TypedArray.
If this buffer is read-only, returns false.
For read-write buffers:
* Direct Byte buffers always have an associated TypedArray. * Long buffers never do. * Other kinds of direct buffers have an associated TypedArray if and only if their byte order is the native order of the platform.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
typedArray(): TypedArrayType
TypedArray backing this direct buffer _(optional operation)_.
TypedArray backing this direct buffer _(optional operation)_.
The TypedArray is sliced to the portion of the ArrayBuffer seen by this Buffer.
- Exceptions thrown
UnsupportedOperationException
If this buffer does not have a backing TypedArray, i.e., !hasTypedArray().
-
def
→[B](y: B): (TypedArrayBufferOps[TypedArrayType], B)
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] to ArrowAssoc[TypedArrayBufferOps[TypedArrayType]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc