Memory Functions

FreeBASIC

Memory Functions
 
Procedures that work with static and dynamic memory.

Description

These procedures provide access to the free store, or heap. Memory from the free store can be reserved and freed, and procedures are provided to read and write directly to that memory.

Working with Dynamic Memory
Procedures that reserve, resize or free dynamic memory.
Miscellaneous Procedures
Procedures that read or write values to and from addresses in memory.

Working with Dynamic Memory
Allocate
Reserves a number of bytes of uninitialized memory and returns the address.
CAllocate
Reserves a number of bytes of initialized (zeroed) memory and returns the address.
Reallocate
Changes the size of reserved memory.
Deallocate
Returns reserved memory back to the system.
Miscellaneous Procedures
Peek
Reads some type of value from an address.
Poke
Writes some type of value to an address.
Clear
Clears data in an array with a specified value.
Swap
Exchange the contents of two variables.
SAdd
Returns the address for the data in a string variable.