Memory Management

allocateMemory ( size -- pointer )  allocates a block of untyped memory and returns a raw pointer to it

freeMemory ( pointer -- )  frees a block of untyped memory by a raw pointer

memoryToText ( pointer size -- text )  creates a new string by a pointer to a sequence of characters in UTF-8 encoding and its size in bytes

readMemory ( number0 pointer -- number1 )  reads bytes from untyped memory and represents the result as the type of the first argument

textMemoryPointer ( text -- pointer )  returns pointer to a text

textMemorySize ( text -- size )  returns size of a UTF-8 string in bytes

writeMemory ( number pointer -- )  writes a number to an untyped memory block