Kotlin——位运算符

2,064 阅读1分钟
  • shl——带符号左移
  • shr——带符号右移
  • ushr——无符号右移
  • and——按位与
  • or——按位或
  • xor——按位异或
  • inv——按位取反