Esempio n. 1
0
	inline uint8_t Truncate_Float_To_Byte(float in)
	{
		Verify(in >= 0.0f && in < 256.0f);
		in -= 0.5f;
		in += 12582912.0f;
		return *Cast_Pointer(puint8_t, &in);
	}
Esempio n. 2
0
	inline uint16_t Truncate_Float_To_Word(float in)
	{
		Verify(in >= 0.0f && in < 65536.0f);
		in -= 0.5f;
		in += 12582912.0f;
		return *Cast_Pointer(puint16_t, &in);
	}
Esempio n. 3
0
	float GetAtof(void) const
	{
		// Check_Object(this);
		Check_Pointer(dataReference);
		return float(atof(Cast_Pointer(PCSTR, dataReference)));
	}
Esempio n. 4
0
	int32_t GetAtol(void) const
	{
		// Check_Object(this);
		Check_Pointer(dataReference);
		return atol(Cast_Pointer(PCSTR, dataReference));
	}
Esempio n. 5
0
	PCSTR GetChar(void) const
	{
		// Check_Object(this);
		return Cast_Pointer(PCSTR, dataReference);
	}
Esempio n. 6
0
	PCSTR GetName(void) const
	{
		// Check_Object(this);
		return &(Cast_Pointer(PCSTR, this)[sizeof(ObjectNameList::Entry)]);
	}