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
- Protected
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] toany2stringadd[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] toArrowAssoc[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
UnsupportedOperationExceptionIf 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
UnsupportedOperationExceptionIf 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
UnsupportedOperationExceptionIf 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] toEnsuring[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] toEnsuring[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] toEnsuring[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] toEnsuring[TypedArrayBufferOps[TypedArrayType]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- 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
UnsupportedOperationExceptionIf this buffer does not have a backing TypedArray, i.e., !hasTypedArray().
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] toStringFormat[TypedArrayBufferOps[TypedArrayType]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
- def →[B](y: B): (TypedArrayBufferOps[TypedArrayType], B)
- Implicit
- This member is added by an implicit conversion from TypedArrayBufferOps[TypedArrayType] toArrowAssoc[TypedArrayBufferOps[TypedArrayType]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.