(Object o)
| 452 | } |
| 453 | |
| 454 | private static int asInt(Object o) { |
| 455 | if (o instanceof Number) { |
| 456 | return ((Number) o).intValue(); |
| 457 | } |
| 458 | return Integer.parseInt(o.toString()); |
| 459 | } |
| 460 | |
| 461 | private static int readUInt16(byte[] b, int p) { |
| 462 | return (b[p] & 0xff) | ((b[p + 1] & 0xff) << 8); |
no test coverage detected