readMemory (Memory Management)

Reads bytes from untyped memory and represents the result as the type of the first argument.

Arguments

number0
is a number of a type to represent the result in.
The
pointer
to read memory at.

Return values

number1
is the result of the same type as
number0
.

Example

a: 100 allocateMemory; 4n16 a writeMemory 8n16 a 2nx + writeMemory c: 0 a readMemory; a freeMemory c 65536 / print c 65536 mod print
Output:
84