groupcache

ByteView

class ByteView extends AnyRef

A ByteView holds an immutable view of bytes

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

Instance Constructors

  1. new ByteView(value: Either[Array[Byte], String])

    value

    Either a byte array or a string that will be exposed as a view of bytes

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

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

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

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

    Gets the byte at the given index

  8. def byteSlice: Array[Byte]

    Gets a copy of the data as a byte slice

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. 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

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(other: Any): Boolean

    Determine if the given object is equal to this view

    Determine if the given object is equal to this view

    Definition Classes
    ByteView → AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

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

    Gets the hash code of this view

    Gets the hash code of this view

    Definition Classes
    ByteView → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def length: Int

    Gets the length of this view

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def slice(from: Int, to: Int): ByteView

    Gets a new ByteView containing the bytes in the given range

  22. def sliceFrom(from: Int): ByteView

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

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Gets a string representation of this view

    Gets a string representation of this view

    Definition Classes
    ByteView → AnyRef → Any
  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped