Skip to content

Category Memory Functions

Paul Squires edited this page Oct 19, 2026 · 2 revisions

Home › All Categories › Memory Functions

Memory Functions

Grouped by task. Memory and pointers lists them beside the rest of the area.

Allocate and free memory

Function What it does From
Allocate Reserves a number of bytes and returns a pointer to them, or 0; the bytes are not cleared. built-in
CAllocate Reserves memory for a number of elements, set to zero, and returns a pointer or 0. built-in
Reallocate Resizes a block, keeping its contents, and returns the new pointer, or 0 on failure. built-in
Deallocate Frees memory from Allocate, CAllocate or Reallocate; does nothing for a null pointer. built-in

Read and write memory by address

Function What it does From
Peek Returns a reference to the value at an address, as a byte or as a given type. built-in
Poke Writes a value to an address, as a byte or as a given type. built-in
SAdd Returns a pointer to the characters of a string. built-in

Copy, fill and swap memory

Function What it does From
Fb_Memcopy Copies a number of bytes between two memory areas that do not overlap. built-in
Fb_Memmove Copies a number of bytes between two memory areas, even when they overlap. built-in
fb_MemCopyClear Copies the first bytes of one area into another and sets the rest to zero. built-in
Clear Sets a number of bytes, starting at a variable, to zero or to a given value. built-in
Swap Exchanges the values of two variables. built-in

Also in this category


Home · Keyword Index

Clone this wiki locally