PureBasic - Memory

Overview

Sometimes it's very useful have raw access to the system memory (RAM) to process some time consuming operations and speed them up. This library allows to allocate any number of memory buffers and to use them directly within PureBasic.

Note: Direct memory manipulation must be handled with care. Accessing memory areas outside of allocated buffers will cause the program to crash.

Command Index

AllocateMemory
AllocateStructure
CompareMemory
CompareMemoryString
CopyMemory
CopyMemoryString
FillMemory
FreeMemory
FreeStructure
MemorySize
MemoryStringLength
MoveMemory
PeekA
PeekB
PeekC
PeekD
PeekF
PeekI
PeekL
PeekQ
PeekS
PeekU
PeekW
PokeA
PokeB
PokeC
PokeD
PokeF
PokeI
PokeL
PokeQ
PokeS
PokeU
PokeW
ReAllocateMemory

Example

MemoryBank.pb

Supported OS

All

Reference Manual - Index