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
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 any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  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: 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 &(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.

  5. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  6. 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 any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def <<(n: Idx): Repr

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

  8. final def ==(arg0: AnyRef): Boolean

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

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

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

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

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. 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 any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. 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 any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. 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 any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. 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 any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

  27. final def isInstanceOf[T0]: Boolean

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

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

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

  31. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  34. def toString(): String

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

    Returns a bitwise complement of this value.

  36. final def wait(): Unit

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

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

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

  40. 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 any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bitwiseOperations: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bitwiseOperations: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: BitwiseOperations[Repr, Idx]

    Implicit information
    This member is added by an implicit conversion from BitwiseOperations[Repr, Idx] to ArrowAssoc[BitwiseOperations[Repr, Idx]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bitwiseOperations: ArrowAssoc[BitwiseOperations[Repr, Idx]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: 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 any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bitwiseOperations: Ensuring[BitwiseOperations[Repr, Idx]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

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

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

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

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

Bitwise Operations

Ungrouped