scala.scalajs.js.typedarray

TypedArrayBufferOps

Related Docs: object TypedArrayBufferOps | package typedarray

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
AnyVal, scala.Any
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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TypedArrayBufferOps(buffer: Buffer)

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 information
    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 information
    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. val buffer: Buffer

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

  11. def ensuring(cond: (TypedArrayBufferOps[TypedArrayType]) ⇒ Boolean, msg: ⇒ scala.Any): TypedArrayBufferOps[TypedArrayType]

    Implicit information
    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: (TypedArrayBufferOps[TypedArrayType]) ⇒ Boolean): TypedArrayBufferOps[TypedArrayType]

    Implicit information
    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, msg: ⇒ scala.Any): TypedArrayBufferOps[TypedArrayType]

    Implicit information
    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 ensuring(cond: Boolean): TypedArrayBufferOps[TypedArrayType]

    Implicit information
    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
  15. def formatted(fmtstr: String): String

    Implicit information
    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()
  16. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  17. 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.

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

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def toString(): String

    Definition Classes
    Any
  21. 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().

  22. def [B](y: B): (TypedArrayBufferOps[TypedArrayType], B)

    Implicit information
    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

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