Object/Class

zio.nio

Buffer

Related Docs: class Buffer | package nio

Permalink

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

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def byte(chunk: Chunk[Byte])(implicit trace: ZTraceElement): UIO[ByteBuffer]

    Permalink

    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: ZTraceElement): UIO[ByteBuffer]

    Permalink

    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: ZTraceElement): UIO[ByteBuffer]

    Permalink

    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

    Permalink

    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: ZTraceElement): UIO[CharBuffer]

    Permalink

    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: ZTraceElement): UIO[CharBuffer]

    Permalink

    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: ZTraceElement): UIO[CharBuffer]

    Permalink

    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: ZTraceElement): UIO[CharBuffer]

    Permalink

    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

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def double(chunk: Chunk[Double])(implicit trace: ZTraceElement): UIO[DoubleBuffer]

    Permalink

    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: ZTraceElement): UIO[DoubleBuffer]

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def float(chunk: Chunk[Float])(implicit trace: ZTraceElement): UIO[FloatBuffer]

    Permalink

    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: ZTraceElement): UIO[FloatBuffer]

    Permalink

    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

    Permalink

    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def int(chunk: Chunk[Int])(implicit trace: ZTraceElement): UIO[IntBuffer]

    Permalink

    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: ZTraceElement): UIO[IntBuffer]

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  30. def long(chunk: Chunk[Long])(implicit trace: ZTraceElement): UIO[LongBuffer]

    Permalink

    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: ZTraceElement): UIO[LongBuffer]

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def short(chunk: Chunk[Short])(implicit trace: ZTraceElement): UIO[ShortBuffer]

    Permalink

    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: ZTraceElement): UIO[ShortBuffer]

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped