Class

fs2.Chunk

Bytes

Related Doc: package Chunk

Permalink

final class Bytes extends Chunk[Byte]

Specialized chunk supporting unboxed operations on bytes.

Self Type
Bytes
Source
Chunk.scala
Linear Supertypes
Chunk[Byte], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bytes
  2. Chunk
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  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. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to any2stringadd[Bytes] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Bytes, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to ArrowAssoc[Bytes] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(i: Int): Byte

    Permalink

    Gets the i-th element of this chunk, throwing an IndexOutOfBoundsException if the index is not in the range [0,size).

    Gets the i-th element of this chunk, throwing an IndexOutOfBoundsException if the index is not in the range [0,size).

    Definition Classes
    BytesChunk
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def at(i: Int): Byte

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collect[B](pf: PartialFunction[Byte, B]): Chunk[B]

    Permalink

    Maps and filters this chunk simultaneously using the supplied partial function.

    Maps and filters this chunk simultaneously using the supplied partial function.

    Definition Classes
    Chunk
  11. def copyToArray[B >: Byte](xs: Array[B], start: Int): Unit

    Permalink

    Copies the elements of this chunk in to the specified array at the specified start index.

    Copies the elements of this chunk in to the specified array at the specified start index.

    Definition Classes
    BytesChunk
  12. def drop(n: Int): Chunk[Byte]

    Permalink

    Returns a new chunk made up of the elemenets of this chunk without the first n elements.

    Returns a new chunk made up of the elemenets of this chunk without the first n elements.

    Definition Classes
    BytesChunk
  13. def ensuring(cond: (Bytes) ⇒ Boolean, msg: ⇒ Any): Bytes

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to Ensuring[Bytes] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Bytes) ⇒ Boolean): Bytes

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to Ensuring[Bytes] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Bytes

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to Ensuring[Bytes] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Bytes

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to Ensuring[Bytes] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(a: Any): Boolean

    Permalink
    Definition Classes
    Chunk → AnyRef → Any
  19. def filter(f: (Byte) ⇒ Boolean): Bytes

    Permalink

    Returns a new chunk made up of the elements of this chunk for which the specified predicate returns true.

    Returns a new chunk made up of the elements of this chunk for which the specified predicate returns true.

    Definition Classes
    BytesChunk
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def foldLeft[B](z: B)(f: (B, Byte) ⇒ B): B

    Permalink

    Reduces this chunk to a value of type B by applying f to each element, left to right, passing the output of each invocation of f to the next invocation of f and starting with z.

    Reduces this chunk to a value of type B by applying f to each element, left to right, passing the output of each invocation of f to the next invocation of f and starting with z.

    Definition Classes
    BytesChunk
  22. def foldRight[B](z: B)(f: (Byte, B) ⇒ B): B

    Permalink

    Reduces this chunk to a value of type B by applying f to each element, right to left, passing the output of each invocation of f to the next invocation of f and starting with z.

    Reduces this chunk to a value of type B by applying f to each element, right to left, passing the output of each invocation of f to the next invocation of f and starting with z.

    Definition Classes
    BytesChunk
  23. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to StringFormat[Bytes] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Chunk → AnyRef → Any
  26. def indexWhere(p: (Byte) ⇒ Boolean): Option[Int]

    Permalink

    Returns the index of the first element for which p returns true.

    Returns the index of the first element for which p returns true.

    Definition Classes
    Chunk
  27. def isEmpty: Boolean

    Permalink

    Returns true if this chunk has no elements.

    Returns true if this chunk has no elements.

    Definition Classes
    Chunk
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def iterator: Iterator[Byte]

    Permalink

    Creates an iterator that iterates the elements of this chunk.

    Creates an iterator that iterates the elements of this chunk. The returned iterator is not thread safe.

    Definition Classes
    Chunk
  30. def map[B](f: (Byte) ⇒ B): Chunk[B]

    Permalink

    Applies f to each element of this chunk, resulting in a new chunk of the same size.

    Applies f to each element of this chunk, resulting in a new chunk of the same size.

    Definition Classes
    BytesChunk
  31. def mapAccumulate[S, B](s0: S)(f: (S, Byte) ⇒ (S, B)): (S, Chunk[B])

    Permalink

    Simultaneously folds and maps this chunk, returning the output of the fold and the transformed chunk.

    Simultaneously folds and maps this chunk, returning the output of the fold and the transformed chunk.

    Definition Classes
    Chunk
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def nonEmpty: Boolean

    Permalink

    Returns true if this chunk has at least 1 element.

    Returns true if this chunk has at least 1 element.

    Definition Classes
    Chunk
  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. val offset: Int

    Permalink
  37. def scanLeft[B](z: B)(f: (B, Byte) ⇒ B): Chunk[B]

    Permalink

    Like foldLeft but each intermediate B value is output.

    Like foldLeft but each intermediate B value is output.

    Definition Classes
    Chunk
  38. val size: Int

    Permalink

    Returns the number of elements in this chunk.

    Returns the number of elements in this chunk.

    Definition Classes
    BytesChunk
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def take(n: Int): Chunk[Byte]

    Permalink

    Returns a new chunk made up of the first n elemenets of this chunk.

    Returns a new chunk made up of the first n elemenets of this chunk.

    Definition Classes
    BytesChunk
  41. def toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]

    Permalink

    Copies the elements of this chunk to an array.

    Copies the elements of this chunk to an array.

    Definition Classes
    Chunk
  42. def toBooleans[B >: Byte](implicit ev: =:=[B, Boolean]): Booleans

    Permalink

    Converts this chunk to a Chunk.Booleans, allowing access to the underlying array of elements.

    Converts this chunk to a Chunk.Booleans, allowing access to the underlying array of elements. If this chunk is already backed by an unboxed array of booleans, this method runs in constant time. Otherwise, this method will copy of the elements of this chunk in to a single array.

    Definition Classes
    Chunk
  43. def toBytes[B >: Byte](implicit ev: =:=[B, Byte]): Bytes

    Permalink

    Converts this chunk to a Chunk.Bytes, allowing access to the underlying array of elements.

    Converts this chunk to a Chunk.Bytes, allowing access to the underlying array of elements. If this chunk is already backed by an unboxed array of bytes, this method runs in constant time. Otherwise, this method will copy of the elements of this chunk in to a single array.

    Definition Classes
    Chunk
  44. def toDoubles[B >: Byte](implicit ev: =:=[B, Double]): Doubles

    Permalink

    Converts this chunk to a Chunk.Doubles, allowing access to the underlying array of elements.

    Converts this chunk to a Chunk.Doubles, allowing access to the underlying array of elements. If this chunk is already backed by an unboxed array of doubles, this method runs in constant time. Otherwise, this method will copy of the elements of this chunk in to a single array.

    Definition Classes
    Chunk
  45. def toList: List[Byte]

    Permalink

    Converts this chunk to a list.

    Converts this chunk to a list.

    Definition Classes
    Chunk
  46. def toLongs[B >: Byte](implicit ev: =:=[B, Long]): Longs

    Permalink

    Converts this chunk to a Chunk.Longs, allowing access to the underlying array of elements.

    Converts this chunk to a Chunk.Longs, allowing access to the underlying array of elements. If this chunk is already backed by an unboxed array of longs, this method runs in constant time. Otherwise, this method will copy of the elements of this chunk in to a single array.

    Definition Classes
    Chunk
  47. def toString(): String

    Permalink
    Definition Classes
    BytesChunk → AnyRef → Any
  48. def toVector: Vector[Byte]

    Permalink

    Converts this chunk to a vector.

    Converts this chunk to a vector.

    Definition Classes
    Chunk
  49. def uncons: Option[(Byte, Chunk[Byte])]

    Permalink

    If this chunk is non-empty, returns the first element of the chunk and the rest as a new chunk.

    If this chunk is non-empty, returns the first element of the chunk and the rest as a new chunk. Otherwise, returns none.

    Definition Classes
    Chunk
  50. val values: Array[Byte]

    Permalink
  51. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def [B](y: B): (Bytes, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Bytes to ArrowAssoc[Bytes] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Chunk[Byte]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Bytes to any2stringadd[Bytes]

Inherited by implicit conversion StringFormat from Bytes to StringFormat[Bytes]

Inherited by implicit conversion Ensuring from Bytes to Ensuring[Bytes]

Inherited by implicit conversion ArrowAssoc from Bytes to ArrowAssoc[Bytes]

Ungrouped