- Companion:
- class
- Source:
- Chunk.scala
Type members
Classlikes
- Companion:
- object
- Source:
- Chunk.scala
A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.
A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.
This is similar to a queue of individual elements but chunk structure is maintained.
- Companion:
- object
- Source:
- Chunk.scala
Inherited classlikes
Value members
Concrete methods
Creates a chunk with the specified values.
Creates a chunk with the specified values.
- Source:
- Chunk.scala
Creates a chunk backed by a slice of an array.
Creates a chunk backed by a slice of an array.
- Source:
- Chunk.scala
Creates a chunk backed by a mutable ArraySeq
.
Creates a chunk backed by a mutable ArraySeq
.
- Source:
- Chunk.scala
Creates a chunk backed by an byte buffer, bounded by the current position and limit
Creates a chunk backed by an byte buffer, bounded by the current position and limit
- Source:
- Chunk.scala
Creates a chunk backed by a byte vector.
Creates a chunk backed by a byte vector.
- Source:
- Chunk.scala
Creates a chunk backed by an char buffer, bounded by the current position and limit
Creates a chunk backed by an char buffer, bounded by the current position and limit
- Source:
- Chunk.scala
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
- Source:
- Chunk.scala
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
The totalSize
parameter must be equal to the sum of the size of each chunk or
otherwise an exception may be thrown.
Concatenates the specified sequence of chunks in to a single chunk, avoiding boxing.
The totalSize
parameter must be equal to the sum of the size of each chunk or
otherwise an exception may be thrown.
- Source:
- Chunk.scala
Creates a singleton chunk or returns an empty one
Creates a singleton chunk or returns an empty one
- Source:
- Chunk.scala
Creates a chunk backed by an IndexedSeq
.
Creates a chunk backed by an IndexedSeq
.
- Source:
- Chunk.scala
Creates a chunk from a scala.collection.Iterable
.
Creates a chunk from a scala.collection.Iterable
.
- Source:
- Chunk.scala
Creates a chunk from a scala.collection.Iterator
.
Creates a chunk from a scala.collection.Iterator
.
- Source:
- Chunk.scala
Creates a chunk consisting of the elements of queue
.
Creates a chunk consisting of the elements of queue
.
- Source:
- Chunk.scala
Creates a chunk consisting of the first n
elements of queue
and returns the remainder.
Creates a chunk consisting of the first n
elements of queue
and returns the remainder.
- Source:
- Chunk.scala
Creates a chunk from a scala.collection.Seq
.
Creates a chunk from a scala.collection.Seq
.
- Source:
- Chunk.scala
Creates a chunk consisting of a single element.
Creates a chunk consisting of a single element.
- Source:
- Chunk.scala
Deprecated methods
Creates a chunk backed by a mutable buffer. The underlying buffer must not be modified after it is passed to this function.
Creates a chunk backed by a mutable buffer. The underlying buffer must not be modified after it is passed to this function.
- Deprecated
- Source:
- Chunk.scala
Inherited methods
Creates a chunk backed by an immutable ArraySeq
.
Creates a chunk backed by an immutable ArraySeq
.
- Inherited from:
- ChunkCompanionPlatform (hidden)
- Source:
- ChunkPlatform.scala
Creates a chunk backed by a slice of an immutable array.
Creates a chunk backed by a slice of an immutable array.
- Inherited from:
- ChunkCompanionPlatform (hidden)
- Source:
- ChunkPlatform.scala
Creates a chunk backed by an immutable array.
Creates a chunk backed by an immutable array.
- Inherited from:
- ChunkCompanionPlatform (hidden)
- Source:
- ChunkPlatform.scala
Creates a chunk from a scala.collection.IterableOnce
.
Creates a chunk from a scala.collection.IterableOnce
.
- Inherited from:
- ChunkCompanionPlatform (hidden)
- Source:
- ChunkPlatform.scala
Implicits
Implicits
Traverse
, Monad
, Alternative
, and TraverseFilter
instance for Chunk
.
Traverse
, Monad
, Alternative
, and TraverseFilter
instance for Chunk
.
- Source:
- Chunk.scala