idTech4.Text.idLexer.LoadMemory C# (CSharp) Method

LoadMemory() public method

Load a script from the given memory.
public LoadMemory ( string text, string name ) : bool
text string
name string
return bool
		public bool LoadMemory(string text, string name)
		{
			return LoadMemory(text, name, 1);
		}

Same methods

idLexer::LoadMemory ( string text, string name, int startLine ) : bool

Usage Example

		public Texture2D ParseImageProgram(string source, ref DateTime timeStamp, ref TextureDepth depth)
		{
			_lexer = new idLexer(LexerOptions.NoFatalErrors | LexerOptions.NoStringConcatination | LexerOptions.NoStringEscapeCharacters | LexerOptions.AllowPathNames);
			_lexer.LoadMemory(source, source);

			return ParseImageProgram(ref timeStamp, ref depth, false);
		}
All Usage Examples Of idTech4.Text.idLexer::LoadMemory