mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
22 lines
442 B
C#
22 lines
442 B
C#
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class TextWriterExtensions
|
|
{
|
|
public static void WriteString(this TextWriter writer, string @string, int offset, int length)
|
|
{
|
|
for (int i = offset; i < offset + length; i++)
|
|
{
|
|
writer.Write(@string[i]);
|
|
}
|
|
}
|
|
|
|
public static void WriteIndent(this TextWriter writer, int count)
|
|
{
|
|
for (int i = 0; i < count; i++)
|
|
{
|
|
writer.Write('\t');
|
|
}
|
|
}
|
|
}
|
|
}
|