(String field, int val)
| 686 | |
| 687 | /* Checks that an int contains an unsigned 8 bit value */ |
| 688 | static int |
| 689 | checkU8(String field, int val) { |
| 690 | if (val < 0 || val > 0xFF) |
| 691 | throw new IllegalArgumentException("\"" + field + "\" " + val + |
| 692 | " must be an unsigned 8 " + |
| 693 | "bit value"); |
| 694 | return val; |
| 695 | } |
| 696 | |
| 697 | /* Checks that an int contains an unsigned 16 bit value */ |
| 698 | static int |
no outgoing calls
no test coverage detected