static int limitToUByte(int i) { ret max(0, min(255, i)); }