I have byte array
PHP Code:
char g_array[4];
I want to do
PHP Code:
Format(buffer, maxlength, "%i %i %i %i", g_array[0], g_array[1], g_array[2], g_array[3]);
Arguments pass as address with offset, but i want to load values before pass.
I need method without any additions besides reading value from memory and creating heap for passing.
Of course i can use addition function
PHP Code:
int LODB(char byte)
{
return byte;
}
// or
int LODB(const char[] byte)
{
return byte[0];
}
Format(buffer, maxlength, "%i %i %i %i", LODB(g_array[0]), LODB(g_array[1]), LODB(g_array[2]), LODB(g_array[3]));
Or force to load value for empty operation
PHP Code:
Format(buffer, maxlength, "%i %i %i %i", g_array[0] + 0, g_array[1] + 0, g_array[2] + 0, g_array[3] + 0);
Format(buffer, maxlength, "%i %i %i %i", g_array[0] * 1, g_array[1] * 1, g_array[2] * 1, g_array[3] * 1);
Format(buffer, maxlength, "%i %i %i %i", g_array[0] & -1, g_array[1] & -1, g_array[2] & -1, g_array[3] & -1);
// etc.
but all of this add addtions operations besides byte loading =(
Is it not possible without dereferencing?