static void checkUnsignedShort(final int value, final String msg) {
		if (value < 0 || value > 65535) {
			throw new IllegalArgumentException(msg
					+ " (must be an unsigned short): " + value);
		}
	}