示例#1
0
 public UByte $unsigned_right$G(long count) {
   return UByte.$box((0xff & $value) >>> count);
 }
示例#2
0
 public UByte $left$G(long count) {
   return UByte.$box($value << count);
 }
示例#3
0
 public UByte $right$G(long count) {
   return UByte.$box((0xff & $value) >>> count);
 } // UByte is always unsigned
示例#4
0
 public UByte $bar(Object a, Type t) {
   return UByte.$box($value | ((UByte) a).$value);
 }
示例#5
0
 public UByte $caret(Object a, Type t) {
   return UByte.$box($value ^ ((UByte) a).$value);
 }
示例#6
0
 // implements Bitwise<UByte>
 public UByte $tilde$G() {
   return UByte.$box(~$value);
 }
示例#7
0
 public UByte $ampersand(Object a, Type t) {
   return UByte.$box($value & ((UByte) a).$value);
 }
示例#8
0
 public UByte $over(Object a, Type t) {
   return UByte.$box((byte) ((0xff & $value) / (0xff & ((UByte) a).$value)));
 }
示例#9
0
 public UByte $times(Object a, Type t) {
   return UByte.$box($value * ((UByte) a).$value);
 }
示例#10
0
 public UByte $minus(Object a, Type t) {
   return UByte.$box($value - ((UByte) a).$value);
 }
示例#11
0
 public UByte $plus(Object a, Type t) {
   return UByte.$box($value + ((UByte) a).$value);
 }
示例#12
0
 public UByte $minus$G() {
   return UByte.$box(-$value);
 }