Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StringOutput

Wraps a StringBuilder so it can be used for output.
Read time 1 minuteLast updated 8 days ago

Definition

public class StringOutput : IOutput

Remarks

StringBuilder, UnicodeEncoding and
string
objects use UTF-16 encoding to store characters.

Constructors

Constructor

Description

StringOutput()Creates a new instance of StringOutput.
StringOutput(System.Int32)Creates a new instance of StringOutput with the given capacity.
StringOutput(System.Text.StringBuilder)Creates a new instance of StringOutput using the given StringBuilder.

Methods

Method

Description

ClearClears the StringBuilder used to create the output. This method gets called by StringOutputPool when it releases an instance.
ToStringReturns the results of the StringBuilder.
WriteWrites a character repeated
count
times to the StringBuilder object.