Packages

object Buffer

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Buffer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def byte(chunk: Chunk[Byte])(implicit trace: Trace): UIO[ByteBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  6. def byte(capacity: Int)(implicit trace: Trace): UIO[ByteBuffer]

    Allocates a byte buffer backed by a new array.

    Allocates a byte buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of bytes to allocate.

  7. def byteDirect(capacity: Int)(implicit trace: Trace): UIO[ByteBuffer]

    Allocates a direct byte buffer.

    Allocates a direct byte buffer.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of bytes to allocate.

  8. def byteFromJava(javaBuffer: java.nio.ByteBuffer): ByteBuffer

    Wraps an existing Java ByteBuffer.

    Wraps an existing Java ByteBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  9. def char(charSequence: CharSequence)(implicit trace: Trace): UIO[CharBuffer]

    Creates a read-only character buffer wrapping a character sequence.

    Creates a read-only character buffer wrapping a character sequence.

    The new buffer's capacity and limit will be charSequence.length and its position will be 0.

    charSequence

    The characters to wrap.

  10. def char(charSequence: CharSequence, start: Int, end: Int)(implicit trace: Trace): UIO[CharBuffer]

    Creates a read-only character buffer wrapping a character sequence.

    Creates a read-only character buffer wrapping a character sequence.

    The new buffer's capacity will be charSequence.length, its position will be start and its limit will be end.

    Dies with IndexOutOfBoundsException if start or end are out of bounds.

    charSequence

    The characters to wrap.

    start

    must be >= 0 and <= capacity

    end

    must be >= start and <= capacity

  11. def char(chunk: Chunk[Char])(implicit trace: Trace): UIO[CharBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  12. def char(capacity: Int)(implicit trace: Trace): UIO[CharBuffer]

    Allocates a char buffer backed by a new array.

    Allocates a char buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of characters to allocate.

  13. def charFromJava(javaBuffer: java.nio.CharBuffer): CharBuffer

    Wraps an existing Java CharBuffer.

    Wraps an existing Java CharBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def double(chunk: Chunk[Double])(implicit trace: Trace): UIO[DoubleBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  16. def double(capacity: Int)(implicit trace: Trace): UIO[DoubleBuffer]

    Allocates an double buffer backed by a new array.

    Allocates an double buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of doubles to allocate.

  17. def doubleFromJava(javaBuffer: java.nio.DoubleBuffer): DoubleBuffer

    Wraps an existing Java DoubleBuffer.

    Wraps an existing Java DoubleBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. def float(chunk: Chunk[Float])(implicit trace: Trace): UIO[FloatBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  22. def float(capacity: Int)(implicit trace: Trace): UIO[FloatBuffer]

    Allocates a float buffer backed by a new array.

    Allocates a float buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of floats to allocate.

  23. def floatFromJava(javaBuffer: java.nio.FloatBuffer): FloatBuffer

    Wraps an existing Java FloatBuffer.

    Wraps an existing Java FloatBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def int(chunk: Chunk[Int])(implicit trace: Trace): UIO[IntBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  27. def int(capacity: Int)(implicit trace: Trace): UIO[IntBuffer]

    Allocates an int buffer backed by a new array.

    Allocates an int buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of ints to allocate.

  28. def intFromJava(javaBuffer: java.nio.IntBuffer): IntBuffer

    Wraps an existing Java IntBuffer.

    Wraps an existing Java IntBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def long(chunk: Chunk[Long])(implicit trace: Trace): UIO[LongBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  31. def long(capacity: Int)(implicit trace: Trace): UIO[LongBuffer]

    Allocates a long buffer backed by a new array.

    Allocates a long buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of longs to allocate.

  32. def longFromJava(javaBuffer: java.nio.LongBuffer): LongBuffer

    Wraps an existing Java LongBuffer.

    Wraps an existing Java LongBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def short(chunk: Chunk[Short])(implicit trace: Trace): UIO[ShortBuffer]

    Creates a new array-backed buffer containing data copied from a chunk.

    Creates a new array-backed buffer containing data copied from a chunk.

    The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.

    chunk

    The data to copy into the new buffer.

  37. def short(capacity: Int)(implicit trace: Trace): UIO[ShortBuffer]

    Allocates a short buffer backed by a new array.

    Allocates a short buffer backed by a new array.

    The new buffer's position will be 0, and its limit will be its capacity.

    Dies with IllegalArgumentException if capacity is negative.

    capacity

    The number of shorts to allocate.

  38. def shortFromJava(javaBuffer: java.nio.ShortBuffer): ShortBuffer

    Wraps an existing Java ShortBuffer.

    Wraps an existing Java ShortBuffer.

    This is only useful for inter-operating with Java APIs that provide Java byte buffers.

  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped