scodec.bits

BitwiseOperations

Related Doc: package bits

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
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. BitwiseOperations
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def +(other: String): String

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

    Implicit information
    This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to ArrowAssoc[BitwiseOperations[Repr, Idx]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def <<(n: Idx): Repr

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

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

    Definition Classes
    AnyRef → Any
  8. 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.

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

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

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensuring(cond: (BitwiseOperations[Repr, Idx]) ⇒ Boolean, msg: ⇒ Any): BitwiseOperations[Repr, Idx]

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

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

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

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

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

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

    Definition Classes
    AnyRef → Any
  23. 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.

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

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. 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.

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

    Definition Classes
    AnyRef
  28. 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.

  29. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def unary_~(): Repr

    Returns a bitwise complement of this value.

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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.

  38. def [B](y: B): (BitwiseOperations[Repr, Idx], B)

    Implicit information
    This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to ArrowAssoc[BitwiseOperations[Repr, Idx]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BitwiseOperations[Repr, Idx] to any2stringadd[BitwiseOperations[Repr, Idx]]

Inherited by implicit conversion StringFormat from BitwiseOperations[Repr, Idx] to StringFormat[BitwiseOperations[Repr, Idx]]

Inherited by implicit conversion Ensuring from BitwiseOperations[Repr, Idx] to Ensuring[BitwiseOperations[Repr, Idx]]

Inherited by implicit conversion ArrowAssoc from BitwiseOperations[Repr, Idx] to ArrowAssoc[BitwiseOperations[Repr, Idx]]

Bitwise Operations

Ungrouped