- Companion
- class
Type members
Classlikes
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
Optional mix-in that provides the class tag of the element type in a chunk.
Optional mix-in that provides the class tag of the element type in a chunk.
- Companion
- object
- Companion
- object
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
- Companion
- object
- Companion
- object
Value members
Concrete methods
Creates a chunk backed by a subsequence of an array of booleans.
Creates a chunk backed by a subsequence of an array of booleans.
Creates a chunk backed by an array. If O
is a primitive type, elements will be boxed.
Creates a chunk backed by an array. If O
is a primitive type, elements will be boxed.
Creates a chunk backed by a subsequence of an array. If A
is a primitive type, elements will be boxed.
Creates a chunk backed by a subsequence of an array. If A
is a primitive type, elements will be boxed.
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.
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
Creates a chunk backed by a subsequence of an array of bytes.
Creates a chunk backed by a subsequence of an array of bytes.
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
Creates a chunk backed by a subsequence of an array of chars.
Creates a chunk backed by a subsequence of an array of chars.
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.
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.
Concatenates the specified sequence of boolean chunks in to a single chunk.
Concatenates the specified sequence of boolean chunks in to a single chunk.
Concatenates the specified sequence of boolean chunks in to a single chunk.
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 boolean chunks in to a single chunk.
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 byte chunks in to a single chunk.
Concatenates the specified sequence of byte chunks in to a single chunk.
Concatenates the specified sequence of byte chunks in to a single chunk.
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 byte chunks in to a single chunk.
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 char chunks in to a single chunk.
Concatenates the specified sequence of char chunks in to a single chunk.
Concatenates the specified sequence of char chunks in to a single chunk.
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 char chunks in to a single chunk.
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 double chunks in to a single chunk.
Concatenates the specified sequence of double chunks in to a single chunk.
Concatenates the specified sequence of double chunks in to a single chunk.
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 double chunks in to a single chunk.
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 float chunks in to a single chunk.
Concatenates the specified sequence of float chunks in to a single chunk.
Concatenates the specified sequence of float chunks in to a single chunk.
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 float chunks in to a single chunk.
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 int chunks in to a single chunk.
Concatenates the specified sequence of int chunks in to a single chunk.
Concatenates the specified sequence of int chunks in to a single chunk.
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 int chunks in to a single chunk.
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 long chunks in to a single chunk.
Concatenates the specified sequence of long chunks in to a single chunk.
Concatenates the specified sequence of long chunks in to a single chunk.
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 long chunks in to a single chunk.
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 short chunks in to a single chunk.
Concatenates the specified sequence of short chunks in to a single chunk.
Concatenates the specified sequence of short chunks in to a single chunk.
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 short chunks in to a single chunk.
The totalSize
parameter must be equal to the sum of the size of each chunk or
otherwise an exception may be thrown.
Creates a chunk backed by an double buffer, bounded by the current position and limit
Creates a chunk backed by an double buffer, bounded by the current position and limit
Creates a chunk backed by a subsequence of an array of doubles.
Creates a chunk backed by a subsequence of an array of doubles.
Creates a chunk backed by an float buffer, bounded by the current position and limit
Creates a chunk backed by an float buffer, bounded by the current position and limit
Creates a chunk backed by a subsequence of an array of floats.
Creates a chunk backed by a subsequence of an array of floats.
Creates a chunk backed by an int buffer, bounded by the current position and limit
Creates a chunk backed by an int buffer, bounded by the current position and limit
Creates a chunk backed by a subsequence of an array of ints.
Creates a chunk backed by a subsequence of an array of ints.
Creates a chunk backed by an long buffer, bounded by the current position and limit
Creates a chunk backed by an long buffer, bounded by the current position and limit
Creates a chunk backed by a subsequence of an array of ints.
Creates a chunk backed by a subsequence of an array of ints.
Creates a chunk consisting of the elements of queue
.
Creates a chunk consisting of the elements of queue
.
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.
Creates a chunk backed by an short buffer, bounded by the current position and limit
Creates a chunk backed by an short buffer, bounded by the current position and limit
Creates a chunk backed by a subsequence of an array of shorts.
Creates a chunk backed by a subsequence of an array of shorts.
Implicits
Implicits
Traverse
, Monad
, Alternative
, and TraverseFilter
instance for Chunk
.
Traverse
, Monad
, Alternative
, and TraverseFilter
instance for Chunk
.
- Example
scala> import cats.syntax.all._, scala.util._ scala> Chunk("1", "2", "NaN").mapFilter(s => Try(s.toInt).toOption) res0: fs2.Chunk[Int] = Chunk(1, 2)