Packages

t

scodec.bits

BitwiseOperations

trait BitwiseOperations[Repr <: BitwiseOperations[Repr, Idx], Idx] extends AnyRef

Bitwise operations on a value of type Repr.

Repr

type that supports that supports bitwise operations

Idx

numeric index type

Source
BitwiseOperations.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BitwiseOperations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def and(other: Repr): Repr

    Returns a bitwise AND of this value with the specified value.

    Returns a bitwise AND of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  2. abstract def not: Repr

    Returns a bitwise complement of this value.

  3. abstract def or(other: Repr): Repr

    Returns a bitwise OR of this value with the specified value.

    Returns a bitwise OR of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  4. abstract def rotateLeft(n: Idx): Repr

    Returns a value of the same size with each bit circularly shifted to the left n bits.

  5. abstract def rotateRight(n: Idx): Repr

    Returns a value of the same size with each bit circularly shifted to the right n bits.

  6. abstract def shiftLeft(n: Idx): Repr

    Returns a value of the same size with each bit shifted to the left n bits.

  7. abstract def shiftRight(n: Idx, signExtension: Boolean): Repr

    Returns a value of the same size with each bit shifted to the right n bits.

    Returns a value of the same size with each bit shifted to the right n bits.

    signExtension

    whether the n left-msot bits should take on the value of bit 0

  8. abstract def xor(other: Repr): Repr

    Returns a bitwise XOR of this value with the specified value.

    Returns a bitwise XOR of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def &(other: Repr): Repr

    Returns a bitwise AND of this value with the specified value.

    Returns a bitwise AND of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  4. final def <<(n: Idx): Repr

    Returns a value of the same size with each bit shifted to the left n bits.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def >>(n: Idx): Repr

    Returns a value of the same size with each bit shifted to the right n bits where the n left-most bits are sign extended.

  7. final def >>>(n: Idx): Repr

    Returns a value of the same size with each bit shifted to the right n bits where the n left-most bits are low.

  8. final def ^(other: Repr): Repr

    Returns a bitwise XOR of this value with the specified value.

    Returns a bitwise XOR of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def iff(other: Repr): Repr

    Returns a bitwise if-and-only-if of this value with the specified value.

    Returns a bitwise if-and-only-if of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  17. def implies(other: Repr): Repr

    Returns a bitwise implication of this value with the specified value.

    Returns a bitwise implication of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def nand(other: Repr): Repr

    Returns a bitwise NAND of this value with the specified value.

    Returns a bitwise NAND of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def nor(other: Repr): Repr

    Returns a bitwise NOR of this value with the specified value.

    Returns a bitwise NOR of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def unary_~: Repr

    Returns a bitwise complement of this value.

  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def |(other: Repr): Repr

    Returns a bitwise OR of this value with the specified value.

    Returns a bitwise OR of this value with the specified value.

    The resulting value's size is the minimum of this value's size and the specified value's size.

Inherited from AnyRef

Inherited from Any

Bitwise Operations

Ungrouped