Skip to content
xu_whale edited this page Dec 5, 2019 · 2 revisions

继承关系

MBit

简介

数字的二进制操作(例如 与,或,非 等操作)

API

bor(number a, number b)

按位“或”运算,a | b

band(number a, number b)

按位“与”运算, a & b

bxor(number a, number b)

按位“异或”运算, a ^ b

neg(number a)

按位“非”运算, ~a

shl(number a, number b)

按位左移, a << bit

shr(number a, number b)

按位右移, a >> bit

Clone this wiki locally