operator ~ method

Byte operator ~()

Bitwise NOT operation.

Implementation

Byte operator ~() {
  if (!isSingleByte) {
    throw NoGuaranteeException('Bitwise operations only supported for single bytes');
  }
  return Byte(~_bytes[0]);
}