DeRefC
See Also: Memory Management Functions
Purpose
Retrieves the contents of one byte of memory using a Pointer to its memory address.
Syntax
DeRefC({pMemory}, {iOffset})
Parameters
- {pMemory}: A Pointer variable that is set equal to the block of memory.
- {iOffset}: An integer variable that contains the offset within the block of memory where the reading will take place.
Return Type
What It Does
Retrieves the contents of one byte of a memory block using a pointer to its memory address and a given offset.
Example
Function GetMemoryByte Pointer aPointer Integer iOffset Returns Integer
Integer iByteValue
Move (DeRefC(aPointer, iOffset)) to iByteValue
Function_Return iByteValue
End_Function
Notes
- Using the DeRefC function with invalid parameters will likely cause your program to crash.