Class TextWriter
Useful tool to write many text data
Inheritance
TextWriter
    Assembly: FlaxEngine.dll
File: Engine/Utilities/TextWriter.h
Syntax
public class TextWriter<CharType> : public Object, public NonCopyableType Parameters
| CharType 
 | 
Constructors
~TextWriter()
Destructor
Declaration
public ~TextWriter()TextWriter(uint32 capacity=1024)
Init with default capacity
Declaration
public TextWriter(uint32 capacity=1024)Parameters
| uint32
        capacity Initial capacity in bytes | 
Methods
Clear()
Clear whole data
Declaration
public void Clear()GetBuffer()
Gets writer private buffer.
Declaration
public MemoryWriteStream* GetBuffer()Returns
| MemoryWriteStream 
 | 
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const overrideReturns
| String 
 | 
Overrides
Write(const CharType* format, const Args& ... args)
Format text and write it
Declaration
public void Write(const CharType* format, const Args& ... args)Parameters
| CharType
        format 
 | 
| Args...
        args 
 | 
Type Parameters
| Args 
 | 
Write(const CharType* text)
Write text to the buffer
Declaration
public void Write(const CharType* text)Parameters
| CharType
        text Data | 
Write(const StringBase<CharType>& text)
Write text to the buffer
Declaration
public void Write(const StringBase<CharType>& text)Parameters
| StringBase<CharType>
        text Data | 
Write(const StringViewBase<CharType>& text)
Write text to the buffer
Declaration
public void Write(const StringViewBase<CharType>& text)Parameters
| StringViewBase<CharType>
        text Data | 
WriteLine()
Write line terminator sign
Declaration
public std::enable_if<std::is_same<Q, char>::value, void>::type WriteLine()Returns
| std::enable_if<std::is_same<Q, char>::value, void>::type 
 | 
Type Parameters
| class Q 
 | 
WriteLine(const CharType* format, const Args& ... args)
Format text and write line to the buffer
Declaration
public void WriteLine(const CharType* format, const Args& ... args)Parameters
| CharType
        format 
 | 
| Args...
        args 
 | 
Type Parameters
| Args 
 | 
WriteLine(const CharType* text)
Write single line of text to the buffer
Declaration
public void WriteLine(const CharType* text)Parameters
| CharType
        text Data |