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

    Permalink
    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)

    Permalink
    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

    Permalink

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

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

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

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

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

  11. final def asInstanceOf[T0]: T0

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

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

    Permalink
    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]

    Permalink
    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]

    Permalink
    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]

    Permalink
    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

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

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

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

    Permalink
    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[_]

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

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

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

  25. final def isInstanceOf[T0]: Boolean

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

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

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

  29. final def notify(): Unit

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

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

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

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

    Permalink

    Returns a bitwise complement of this value.

  34. final def wait(): Unit

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

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

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

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

    Permalink
    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