|
GetBankPTR | ||
Address = GetBankPTR(BankIndex) | ||
Parameters: BankIndex = The Index of the bank your wish to query |
||
Returns: Address = The Address of this bank in memory |
||
GetBankPTR returns the address in memory (the pointer) of a memory bank. This is often useful when using DLL's or using the ReadMemory/WriteMemory functions for faster file accesss. FACTS: * The return address will be invalid if the bank is deleted after reading the initial pointer value. * After a ResizeBank the pointer of a bank may be different between calls. Therefore it's recommended you always query to the pointer prior to perform any write operation to avoid potenial logic issues. Mini Tutorial: This code creates a bank and returns the banks actually memory pointer.
This example would output something like this (the memory banks pointer value will differ each time the demo is run)
|
Related Info: | CreateBank | Dim | GetBankSize | GetBankStatus | Pointer : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |