groupcache

ByteView

final class ByteView extends AnyVal

A ByteView holds an immutable view of bytes.

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteView
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def at(index: Int): Byte

    Gets the byte at the given index.

  6. def byteSlice: Array[Byte]

    Gets a copy of the data as a byte slice.

  7. def copy(dest: Array[Byte]): Unit

    Copies the contents of this view into the given byte array.

    Copies the contents of this view into the given byte array. If the array is smaller than the size of this view, it will copy as much of this view as the array will hold.

  8. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  10. def length: Int

    Gets the length of this view.

  11. def sameElements(that: ByteView): Boolean

    Determines if the given byte array contains the same byte elements as this view.

  12. def slice(from: Int, to: Int): ByteView

    Gets a new ByteView containing the bytes in the given range.

  13. def sliceFrom(from: Int): ByteView

    Gets a new ByteView containing the bytes starting from the given index.

  14. def toString(): String

    Gets a string representation of this view.

    Gets a string representation of this view.

    Definition Classes
    ByteView → Any
  15. val value: Array[Byte]

    An array of bytes.

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped