![]() The absolute address is on a 64-bit range.Īs a consequence the type of a pointer depends of the CPU address mode, ('long' on 32-bit CPUĪnd 'quad' on 64-bit one for example), so a pointer is a variable of type pointer. On 64-bit processors it takes 64-bit (8 bytes, like a 'quad') in memory, because Pointer takes 32-bit (4 bytes, like a 'long') in memory On 32-bit processors the address space is limited to 32-bit, so a Space allowing to store an absolute address of the processor: 'ptr' is a variable (regular one) storing a value, '*ptr' is another variable of pointer type storing an address.īecause pointers receive only addresses as values, the memory size of a pointer is the Therefore '*ptr' and 'ptr' are two different variables. Note: unlike C/C , in PureBasic the '*' is always part of the item name. Find the address of a variable, procedure or label (as shown below) Get the result from a function (as shown in the above example) There are only three valid methods to set the value of a pointer: MouseX = *MyScreen\MouseX Assuming the Screen structure contains a MouseX field ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |