abstract class ByteIterator extends BufferedIterator[Byte]
An iterator over a ByteString.
- Source
- ByteIterator.scala
- Alphabetic
- By Inheritance
- ByteIterator
- BufferedIterator
- Iterator
- TraversableOnce
- GenTraversableOnce
- AnyRef
- Any
- by MonadOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- by alternateImplicit
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ByteIterator()
Type Members
-
class
GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
- Definition Classes
- Iterator
Abstract Value Members
-
abstract
def
asInputStream: InputStream
Directly wraps this ByteIterator in an InputStream without copying.
Directly wraps this ByteIterator in an InputStream without copying. Read and skip operations on the stream will advance the iterator accordingly.
-
abstract
def
copyToBuffer(buffer: ByteBuffer): Int
For performance sensitive code, call take() directly on ByteString (it's optimised there)
-
abstract
def
getBytes(xs: Array[Byte], offset: Int, n: Int): ByteIterator.this.type
Get a specific number of Bytes from this iterator.
Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if length < n or if (xs.length - offset) < n.
-
abstract
def
getDoubles(xs: Array[Double], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Doubles from this iterator.
-
abstract
def
getFloats(xs: Array[Float], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Floats from this iterator.
-
abstract
def
getInts(xs: Array[Int], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Ints from this iterator.
-
abstract
def
getLongs(xs: Array[Long], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Longs from this iterator.
-
abstract
def
getShorts(xs: Array[Short], offset: Int, n: Int)(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Shorts from this iterator.
-
abstract
def
hasNext: Boolean
- Definition Classes
- Iterator
-
abstract
def
head: Byte
- Definition Classes
- ByteIterator → BufferedIterator
- abstract def len: Int
-
abstract
def
next(): Byte
- Definition Classes
- ByteIterator → Iterator
- abstract def toByteString: ByteString
Concrete Value Members
- def ++(that: TraversableOnce[Byte]): ByteIterator
-
def
++[B >: Byte](that: ⇒ GenTraversableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
-
def
/:[B](z: B)(op: (B, Byte) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: (Byte, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, Byte) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
buffered: ByteIterator.this.type
- Definition Classes
- BufferedIterator → Iterator
-
def
clone(): ByteIterator
- Definition Classes
- ByteIterator → AnyRef
-
def
collect[B](pf: PartialFunction[Byte, B]): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
collect
has changed. The previous behavior can be reproduced withtoSeq
.
-
def
collectFirst[B](pf: PartialFunction[Byte, B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
contains(elem: Any): Boolean
- Definition Classes
- Iterator
-
def
copyToArray[B >: Byte](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Byte](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Byte](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: Byte](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
corresponds[B](that: GenTraversableOnce[B])(p: (Byte, B) ⇒ Boolean): Boolean
- Definition Classes
- Iterator
-
def
count(p: (Byte) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
drop(n: Int): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator
-
def
dropWhile(p: (Byte) ⇒ Boolean): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator
-
def
duplicate: (ByteIterator, ByteIterator)
- Definition Classes
- ByteIterator → Iterator
-
def
exists(p: (Byte) ⇒ Boolean): Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
filter(p: (Byte) ⇒ Boolean): Iterator[Byte]
- Definition Classes
- Iterator
-
def
filterNot(p: (Byte) ⇒ Boolean): Iterator[Byte]
- Definition Classes
- Iterator
-
def
find(p: (Byte) ⇒ Boolean): Option[Byte]
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
flatMap[B](f: (Byte) ⇒ GenTraversableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
-
def
fold[A1 >: Byte](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, Byte) ⇒ B): B
- Definition Classes
- ByteIterator → TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: (Byte, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
forall(p: (Byte) ⇒ Boolean): Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: (Byte) ⇒ U): Unit
- Definition Classes
- ByteIterator → Iterator → TraversableOnce → GenTraversableOnce
-
def
getByte: Byte
Get a single Byte from this iterator.
Get a single Byte from this iterator. Identical to next().
-
def
getByteString(n: Int): ByteString
Get a ByteString with specific number of Bytes from this iterator.
Get a ByteString with specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len < n.
-
def
getBytes(n: Int): Array[Byte]
Get a specific number of Bytes from this iterator.
Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len < n.
-
def
getBytes(xs: Array[Byte]): ByteIterator.this.type
Get a specific number of Bytes from this iterator.
Get a specific number of Bytes from this iterator. In contrast to copyToArray, this method will fail if this.len < xs.length.
- def getDouble(implicit byteOrder: ByteOrder): Double
-
def
getDoubles(xs: Array[Double])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Doubles from this iterator.
- def getFloat(implicit byteOrder: ByteOrder): Float
-
def
getFloats(xs: Array[Float])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Floats from this iterator.
-
def
getInt(implicit byteOrder: ByteOrder): Int
Get a single Int from this iterator.
-
def
getInts(xs: Array[Int])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Ints from this iterator.
-
def
getLong(implicit byteOrder: ByteOrder): Long
Get a single Long from this iterator.
-
def
getLongPart(n: Int)(implicit byteOrder: ByteOrder): Long
Get a Long from this iterator where only the least significant
n
bytes were encoded. -
def
getLongs(xs: Array[Long])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Longs from this iterator.
-
def
getShort(implicit byteOrder: ByteOrder): Short
Get a single Short from this iterator.
-
def
getShorts(xs: Array[Short])(implicit byteOrder: ByteOrder): ByteIterator.this.type
Get a number of Shorts from this iterator.
-
def
grouped[B >: Byte](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
-
def
hasDefiniteSize: Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
headOption: Option[Byte]
- Definition Classes
- BufferedIterator
-
def
indexOf[B >: Byte](elem: B): Int
- Definition Classes
- ByteIterator → Iterator
- def indexOf(elem: Byte): Int
-
def
indexOf[B >: Byte](elem: B, from: Int): Int
- Definition Classes
- Iterator
-
def
indexWhere(p: (Byte) ⇒ Boolean): Int
- Definition Classes
- ByteIterator → Iterator
-
def
indexWhere(p: (Byte) ⇒ Boolean, from: Int): Int
- Definition Classes
- Iterator
-
def
isEmpty: Boolean
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
isTraversableAgain: Boolean
- Definition Classes
- Iterator → GenTraversableOnce
-
def
length: Int
- Definition Classes
- Iterator
-
def
map[B](f: (Byte) ⇒ B): Iterator[B]
- Definition Classes
- Iterator
-
def
max[B >: Byte](implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: Byte](implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
padTo[A1 >: Byte](len: Int, elem: A1): Iterator[A1]
- Definition Classes
- Iterator
-
def
partition(p: (Byte) ⇒ Boolean): (Iterator[Byte], Iterator[Byte])
- Definition Classes
- Iterator
-
def
patch[B >: Byte](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- Definition Classes
- Iterator
-
def
product[B >: Byte](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: Byte](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: Byte](op: (B, Byte) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: Byte](op: (B, Byte) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: Byte](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: Byte](op: (Byte, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: Byte](op: (Byte, B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
sameElements(that: Iterator[_]): Boolean
- Definition Classes
- Iterator
-
def
scanLeft[B](z: B)(op: (B, Byte) ⇒ B): Iterator[B]
- Definition Classes
- Iterator
-
def
scanRight[B](z: B)(op: (Byte, B) ⇒ B): Iterator[B]
- Definition Classes
- Iterator
-
def
seq: Iterator[Byte]
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
slice(from: Int, until: Int): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator
-
def
sliding[B >: Byte](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
-
def
span(p: (Byte) ⇒ Boolean): (ByteIterator, ByteIterator)
- Definition Classes
- ByteIterator → Iterator
-
def
sum[B >: Byte](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
take(n: Int): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator
-
def
takeWhile(p: (Byte) ⇒ Boolean): ByteIterator.this.type
- Definition Classes
- ByteIterator → Iterator
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Byte, Col[Byte]]): Col[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- ByteIterator → TraversableOnce → GenTraversableOnce
-
def
toBuffer[B >: Byte]: Buffer[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIndexedSeq: IndexedSeq[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[Byte]
- Definition Classes
- Iterator → GenTraversableOnce
-
def
toList: List[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[Byte, (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSeq: ByteString
- Definition Classes
- ByteIterator → TraversableOnce → GenTraversableOnce
-
def
toSet[B >: Byte]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[Byte]
- Definition Classes
- Iterator → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- Iterator → AnyRef → Any
-
def
toTraversable: Traversable[Byte]
- Definition Classes
- Iterator → TraversableOnce → GenTraversableOnce
-
def
toVector: Vector[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
withFilter(p: (Byte) ⇒ Boolean): Iterator[Byte]
- Definition Classes
- Iterator
-
def
zip[B](that: Iterator[B]): Iterator[(Byte, B)]
- Definition Classes
- Iterator
-
def
zipAll[B, A1 >: Byte, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]
- Definition Classes
- Iterator
-
def
zipWithIndex: Iterator[(Byte, Int)]
- Definition Classes
- Iterator
Shadowed Implicit Value Members
-
def
filter(p: (Byte) ⇒ Boolean): TraversableOnce[Byte]
- Implicit
- This member is added by an implicit conversion from ByteIterator to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteIterator: MonadOps[Byte]).filter(p)
- Definition Classes
- MonadOps
-
def
flatMap[B](f: (Byte) ⇒ GenTraversableOnce[B]): TraversableOnce[B]
- Implicit
- This member is added by an implicit conversion from ByteIterator to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteIterator: MonadOps[Byte]).flatMap(f)
- Definition Classes
- MonadOps
-
def
map[B](f: (Byte) ⇒ B): TraversableOnce[B]
- Implicit
- This member is added by an implicit conversion from ByteIterator to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteIterator: MonadOps[Byte]).map(f)
- Definition Classes
- MonadOps
-
def
withFilter(p: (Byte) ⇒ Boolean): Iterator[Byte]
- Implicit
- This member is added by an implicit conversion from ByteIterator to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteIterator: MonadOps[Byte]).withFilter(p)
- Definition Classes
- MonadOps