Trait

scodec.bits

BitwiseOperations

Related Doc: package bits

Permalink

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. All

Abstract Value Members

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

    Permalink

    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

    Permalink

    Returns a bitwise complement of this value.

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

    Permalink

    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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def &(other: Repr): Repr

    Permalink

    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

    Permalink

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

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def >>(n: Idx): Repr

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def iff(other: Repr): Repr

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  19. def nand(other: Repr): Repr

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  21. def nor(other: Repr): Repr

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def unary_~: Repr

    Permalink

    Returns a bitwise complement of this value.

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def |(other: Repr): Repr

    Permalink

    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