operator unary- method

Byte operator unary-()

Unary minus operator.

Implementation

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