object Chunk extends Serializable
- Source
- Chunk.scala
- Alphabetic
- By Inheritance
- Chunk
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Booleans(values: Array[Boolean], offset: Int, length: Int) extends Chunk[Boolean] with KnownElementType[Boolean] with Product with Serializable
- final case class Boxed[O](values: Array[O], offset: Int, length: Int) extends Chunk[O] with Product with Serializable
- sealed abstract class Buffer[A <: Buffer[A, B, C], B <: java.nio.Buffer, C] extends Chunk[C] with KnownElementType[C]
- final case class ByteBuffer extends Buffer[ByteBuffer, java.nio.ByteBuffer, Byte] with Product with Serializable
- final case class ByteVectorChunk(toByteVector: ByteVector) extends Chunk[Byte] with KnownElementType[Byte] with Product with Serializable
- final case class Bytes(values: Array[Byte], offset: Int, length: Int) extends Chunk[Byte] with KnownElementType[Byte] with Product with Serializable
- final case class CharBuffer(buf: java.nio.CharBuffer, offset: Int, size: Int) extends Buffer[CharBuffer, java.nio.CharBuffer, Char] with Product with Serializable
- final case class DoubleBuffer(buf: java.nio.DoubleBuffer, offset: Int, size: Int) extends Buffer[DoubleBuffer, java.nio.DoubleBuffer, Double] with Product with Serializable
- final case class Doubles(values: Array[Double], offset: Int, length: Int) extends Chunk[Double] with KnownElementType[Double] with Product with Serializable
- final case class FloatBuffer(buf: java.nio.FloatBuffer, offset: Int, size: Int) extends Buffer[FloatBuffer, java.nio.FloatBuffer, Float] with Product with Serializable
- final case class Floats(values: Array[Float], offset: Int, length: Int) extends Chunk[Float] with KnownElementType[Float] with Product with Serializable
- final case class IntBuffer(buf: java.nio.IntBuffer, offset: Int, size: Int) extends Buffer[IntBuffer, java.nio.IntBuffer, Int] with Product with Serializable
- final case class Ints(values: Array[Int], offset: Int, length: Int) extends Chunk[Int] with KnownElementType[Int] with Product with Serializable
-
trait
KnownElementType[A] extends AnyRef
Optional mix-in that provides the class tag of the element type in a chunk.
- final case class LongBuffer(buf: java.nio.LongBuffer, offset: Int, size: Int) extends Buffer[LongBuffer, java.nio.LongBuffer, Long] with Product with Serializable
- final case class Longs(values: Array[Long], offset: Int, length: Int) extends Chunk[Long] with KnownElementType[Long] with Product with Serializable
- final case class ShortBuffer(buf: java.nio.ShortBuffer, offset: Int, size: Int) extends Buffer[ShortBuffer, java.nio.ShortBuffer, Short] with Product with Serializable
- final case class Shorts(values: Array[Short], offset: Int, length: Int) extends Chunk[Short] with KnownElementType[Short] with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[O](os: O*): Chunk[O]
Creates a chunk with the specified values.
-
def
array[O](values: Array[O]): Chunk[O]
Creates a chunk backed by an array.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
booleans(values: Array[Boolean], offset: Int, length: Int): Chunk[Boolean]
Creates a chunk backed by a subsequence of an array of booleans.
-
def
booleans(values: Array[Boolean]): Chunk[Boolean]
Creates a chunk backed by an array of booleans.
-
def
boxed[O](values: Array[O], offset: Int, length: Int): Chunk[O]
Creates a chunk backed by a subsequence of an array.
Creates a chunk backed by a subsequence of an array. If
A
is a primitive type, elements will be boxed. -
def
boxed[O](values: Array[O]): Chunk[O]
Creates a chunk backed by an array.
Creates a chunk backed by an array. If
O
is a primitive type, elements will be boxed. -
def
buffer[O](b: scala.collection.mutable.Buffer[O]): Chunk[O]
Creates a chunk backed by a mutable buffer.
Creates a chunk backed by a mutable buffer. The underlying buffer must not be modified after it is passed to this function.
-
def
byteBuffer(buf: java.nio.ByteBuffer): Chunk[Byte]
Creates a chunk backed by an byte buffer, bounded by the current position and limit
-
def
byteVector(bv: ByteVector): Chunk[Byte]
Creates a chunk backed by a byte vector.
-
def
bytes(values: Array[Byte], offset: Int, length: Int): Chunk[Byte]
Creates a chunk backed by a subsequence of an array of bytes.
-
def
bytes(values: Array[Byte]): Chunk[Byte]
Creates a chunk backed by an array of bytes.
-
def
charBuffer(buf: java.nio.CharBuffer): Chunk[Char]
Creates a chunk backed by an char buffer, bounded by the current position and limit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
concat[A](chunks: Seq[Chunk[A]]): Chunk[A]
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
-
def
concatBooleans(chunks: Seq[Chunk[Boolean]]): Chunk[Boolean]
Concatenates the specified sequence of boolean chunks in to a single chunk.
-
def
concatBytes(chunks: Seq[Chunk[Byte]]): Chunk[Byte]
Concatenates the specified sequence of byte chunks in to a single chunk.
-
def
concatDoubles(chunks: Seq[Chunk[Double]]): Chunk[Double]
Concatenates the specified sequence of double chunks in to a single chunk.
-
def
concatFloats(chunks: Seq[Chunk[Float]]): Chunk[Float]
Concatenates the specified sequence of float chunks in to a single chunk.
-
def
concatInts(chunks: Seq[Chunk[Int]]): Chunk[Int]
Concatenates the specified sequence of int chunks in to a single chunk.
-
def
concatLongs(chunks: Seq[Chunk[Long]]): Chunk[Long]
Concatenates the specified sequence of long chunks in to a single chunk.
-
def
concatShorts(chunks: Seq[Chunk[Short]]): Chunk[Short]
Concatenates the specified sequence of short chunks in to a single chunk.
-
def
doubleBuffer(buf: java.nio.DoubleBuffer): Chunk[Double]
Creates a chunk backed by an double buffer, bounded by the current position and limit
-
def
doubles(values: Array[Double], offset: Int, length: Int): Chunk[Double]
Creates a chunk backed by a subsequence of an array of doubles.
-
def
doubles(values: Array[Double]): Chunk[Double]
Creates a chunk backed by an array of doubles.
-
def
empty[A]: Chunk[A]
Chunk with no elements.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
floatBuffer(buf: java.nio.FloatBuffer): Chunk[Float]
Creates a chunk backed by an float buffer, bounded by the current position and limit
-
def
floats(values: Array[Float], offset: Int, length: Int): Chunk[Float]
Creates a chunk backed by a subsequence of an array of floats.
-
def
floats(values: Array[Float]): Chunk[Float]
Creates a chunk backed by an array of floats.
- implicit def fs2EqForChunk[A](implicit arg0: Eq[A]): Eq[Chunk[A]]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
indexedSeq[O](s: IndexedSeq[O]): Chunk[O]
Creates a chunk backed by an
IndexedSeq
. - implicit val instance: Traverse[Chunk] with Monad[Chunk]
-
def
intBuffer(buf: java.nio.IntBuffer): Chunk[Int]
Creates a chunk backed by an int buffer, bounded by the current position and limit
-
def
ints(values: Array[Int], offset: Int, length: Int): Chunk[Int]
Creates a chunk backed by a subsequence of an array of ints.
-
def
ints(values: Array[Int]): Chunk[Int]
Creates a chunk backed by an array of ints.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
longBuffer(buf: java.nio.LongBuffer): Chunk[Long]
Creates a chunk backed by an long buffer, bounded by the current position and limit
-
def
longs(values: Array[Long], offset: Int, length: Int): Chunk[Long]
Creates a chunk backed by a subsequence of an array of ints.
-
def
longs(values: Array[Long]): Chunk[Long]
Creates a chunk backed by an array of longs.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
seq[O](s: Seq[O]): Chunk[O]
Creates a chunk backed by a
Seq
. -
def
shortBuffer(buf: java.nio.ShortBuffer): Chunk[Short]
Creates a chunk backed by an short buffer, bounded by the current position and limit
-
def
shorts(values: Array[Short], offset: Int, length: Int): Chunk[Short]
Creates a chunk backed by a subsequence of an array of shorts.
-
def
shorts(values: Array[Short]): Chunk[Short]
Creates a chunk backed by an array of shorts.
-
def
singleton[O](o: O): Chunk[O]
Creates a chunk consisting of a single element.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
vector[O](v: Vector[O]): Chunk[O]
Creates a chunk backed by a vector.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Booleans extends Serializable
- object Boxed extends Serializable
- object ByteBuffer extends Serializable
- object Bytes extends Serializable
- object CharBuffer extends Serializable
- object DoubleBuffer extends Serializable
- object Doubles extends Serializable
- object FloatBuffer extends Serializable
- object Floats extends Serializable
- object IntBuffer extends Serializable
- object Ints extends Serializable
- object LongBuffer extends Serializable
- object Longs extends Serializable
- object ShortBuffer extends Serializable
- object Shorts extends Serializable