Phasor
01.00.10.059
|
Memory related functions for scripts. More...
Go to the source code of this file.
Functions | |
void | l_readbit (PHASOR_API_ARGS) |
Reads a bit from the specified memory address. | |
void | l_readbyte (PHASOR_API_ARGS) |
Reads a byte from the specified memory address. | |
void | l_readchar (PHASOR_API_ARGS) |
Reads a char from the specified memory address. | |
void | l_readword (PHASOR_API_ARGS) |
Reads a word from the specified memory address. | |
void | l_readshort (PHASOR_API_ARGS) |
Reads a short from the specified memory address. | |
void | l_readdword (PHASOR_API_ARGS) |
Reads a dword from the specified memory address. | |
void | l_readint (PHASOR_API_ARGS) |
Reads an int from the specified memory address. | |
void | l_readfloat (PHASOR_API_ARGS) |
Reads a float from the specified memory address. | |
void | l_readdouble (PHASOR_API_ARGS) |
Reads a double from the specified memory address. | |
void | l_readstring (PHASOR_API_ARGS) |
Reads a string from the specified memory address. | |
void | l_readwidestring (PHASOR_API_ARGS) |
Reads a wide string from the specified memory address. | |
void | l_writebit (PHASOR_API_ARGS) |
Writes a bit to the specified memory address. | |
void | l_writebyte (PHASOR_API_ARGS) |
Writes a byte to the specified memory address. | |
void | l_writechar (PHASOR_API_ARGS) |
Writes a char to the specified memory address. | |
void | l_writeword (PHASOR_API_ARGS) |
Writes a word to the specified memory address. | |
void | l_writeshort (PHASOR_API_ARGS) |
Writes a short to the specified memory address. | |
void | l_writedword (PHASOR_API_ARGS) |
Writes a dword to the specified memory address. | |
void | l_writeint (PHASOR_API_ARGS) |
Writes an int to the specified memory address. | |
void | l_writefloat (PHASOR_API_ARGS) |
Writes a float to the specified memory address. | |
void | l_writedouble (PHASOR_API_ARGS) |
Writes a double to the specified memory address. | |
void | l_writestring (PHASOR_API_ARGS) |
Writes a string to the specified memory address. | |
void | l_writewidestring (PHASOR_API_ARGS) |
Writes a wide string to the specified memory address. | |
Memory related functions for scripts.
As of 01.00.10.059 all read/write functions have been overloaded to optionally remove the need for the address offset. For such cases you shouldn't include address_offset and the address used will be exactly what's specified and not (base_address + address_offset) as in previous versions.
For example, the below are equivalent
byte
- 8 bit positive integer from [0,255]char
- 8 bit integer from [-128, 127]word
- 16 bit positive integer from [0,65,535]short
- 16 bit integer from [-32768, 32767]dword
- 32 bit positive integer from [0, 4,294,967,295]int
- 32 bit integer from [-2147483648, 2147483647]float
- 32 bit floating point number from [-3.402823466e+38, 3.402823466e+38]double
- 64 bit floating point number from[-1.7976931348623158e+308, 1.7976931348623158e+308]