Difference between revisions of "Help File:sizeofExportedFunctions"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "<pre> int sizeofExportedFunctions; </pre> As you might have guessed, it contains the size of the structure CE has sent to your plugin. You can check if it's what you expected...")
 
m
Line 5: Line 5:
 
As you might have guessed, it contains the size of the structure CE has sent to your plugin.
 
As you might have guessed, it contains the size of the structure CE has sent to your plugin.
 
You can check if it's what you expected or add some checks to make sure you don't go over it. If for difficulty reasons you can't use '''''sizeof''''' then use that instead when copying the memory block to your own region of memory. As said before, ExportedFunctions you get in initializefunctions is a copy and will be invalidated when the function returns, so copying is crucial.
 
You can check if it's what you expected or add some checks to make sure you don't go over it. If for difficulty reasons you can't use '''''sizeof''''' then use that instead when copying the memory block to your own region of memory. As said before, ExportedFunctions you get in initializefunctions is a copy and will be invalidated when the function returns, so copying is crucial.
 +
 +
* [[Cheat Engine:Help File|Back to Help File]]

Revision as of 18:04, 29 July 2021

int sizeofExportedFunctions;

As you might have guessed, it contains the size of the structure CE has sent to your plugin. You can check if it's what you expected or add some checks to make sure you don't go over it. If for difficulty reasons you can't use sizeof then use that instead when copying the memory block to your own region of memory. As said before, ExportedFunctions you get in initializefunctions is a copy and will be invalidated when the function returns, so copying is crucial.