# Functions
ReadRequestFromMemory is a helper function that reads raw memory starting at 'ptr' for 'length' bytes.
WriteResponseToMemory is a helper function that marshals provided message to module memory, appends terminators and returns the pointer to the start of the message.