Code gen for ReadMemoryTextOfLength