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. Fb_Memcopy Copies a block of memory from a location to another. (memory areas must not overlap) fb_MemCopyClear Copies the first part of a block of memory from a location to another and clears the rest. (memory areas must not overlap) Fb_Memmove Copies a block of memory from a location to another. (memory areas may overlap) Swap Exchange the contents of two variables. SAdd Returns the address for the data in a zstring/wstring variable.

See also

- Memory Operators