Packages

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypedArrayBufferOps
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: scala.Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. 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
  4. 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()
  5. final def ==(arg0: scala.Any): Boolean
    Definition Classes
    Any
  6. 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()

  7. 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()

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. 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()

  10. 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
  11. 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
  12. 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
  13. 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
  14. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  15. 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.

  16. 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.

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def toString(): String
    Definition Classes
    Any
  19. 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().

  20. 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

Deprecated Value Members

  1. 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
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

Inherited from AnyVal

Inherited from scala.Any

Inherited by implicit conversion any2stringadd from TypedArrayBufferOps[TypedArrayType] to any2stringadd[TypedArrayBufferOps[TypedArrayType]]

Inherited by implicit conversion StringFormat from TypedArrayBufferOps[TypedArrayType] to StringFormat[TypedArrayBufferOps[TypedArrayType]]

Inherited by implicit conversion Ensuring from TypedArrayBufferOps[TypedArrayType] to Ensuring[TypedArrayBufferOps[TypedArrayType]]

Inherited by implicit conversion ArrowAssoc from TypedArrayBufferOps[TypedArrayType] to ArrowAssoc[TypedArrayBufferOps[TypedArrayType]]

Ungrouped