public static float getFloat(byte[] value, int index) {
		float i = 0;
		byte b = value[index++];
		switch (b) {
		case XsonConst.FLOAT1:
			i = ByteUtils.byteToFloat(value, index, 1);
			break;
		case XsonConst.FLOAT2:
			i = ByteUtils.byteToFloat(value, index, 2);
			break;
		case XsonConst.FLOAT3:
			i = ByteUtils.byteToFloat(value, index, 3);
			break;
		case XsonConst.FLOAT:
			i = ByteUtils.byteToFloat(value, index, 4);
			break;
		default:
			throw new XsonDeserializerException("Illegal float mark '"
					+ Integer.toHexString(b & 0xFF) + "' at index " + index);
		}
		return i;
	}