memoryToText (Memory Management)

Creates a new string.

Arguments

pointer
to a character sequence in UTF-8 encoding.
size
of the character sequence in bytes, an integer number.

Return values

text
is the new string.

Example

m: 4n8 allocateMemory; 49n8 m writeMemory 50n8 m 1nx + writeMemory 51n8 m 2nx + writeMemory 52n8 m 3nx + writeMemory s: m 4 memoryToText; s print m freeMemory
Output:
1234