Class/Object

scala.scalajs.js.typedarray

TypedArrayBufferOps

Related Docs: object TypedArrayBufferOps | package typedarray

Permalink

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

Instance Constructors

  1. new TypedArrayBufferOps(buffer: Buffer)

    Permalink

Value Members

  1. final def !=(arg0: scala.Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. def +(other: String): String

    Permalink
    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)

    Permalink
    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

    Permalink
    Definition Classes
    Any
  6. def arrayBuffer(): ArrayBuffer

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  9. val buffer: Buffer

    Permalink
  10. def dataView(): DataView

    Permalink

    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]

    Permalink
    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]

    Permalink
    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]

    Permalink
    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]

    Permalink
    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

    Permalink
    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]

    Permalink
    Definition Classes
    AnyVal → Any
  17. def hasArrayBuffer(): Boolean

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  20. def toString(): String

    Permalink
    Definition Classes
    Any
  21. def typedArray(): TypedArrayType

    Permalink

    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)

    Permalink
    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