예제 #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);
 }