public static int getInt(byte[] value, int index) {
		int i = 0;
		byte b = value[index++];
		switch (b) {
		case XsonConst.INT1:
			i = ByteUtils.byteToInt(value, index, 1);
			break;
		case XsonConst.INT2:
			i = ByteUtils.byteToInt(value, index, 2);
			break;
		case XsonConst.INT3:
			i = ByteUtils.byteToInt(value, index, 3);
			break;
		case XsonConst.INT:
			i = ByteUtils.byteToInt(value, index, 4);
			break;
		default:
			throw new XsonDeserializerException("Illegal int mark '"
					+ Integer.toHexString(b & 0xFF) + "' at index " + index);
		}
		return i;
	}