This is a simple class that provides a string full of spaces. This may be used to avoid memory allocations/initializations.
Public Static Methods | |
static AString | Get (int minSize=128) |
static void | Write (StreamWriter os, int qty) |
static void | Write (TextWriter os, int qty) |
Private Static Fields | |
static AString | theSpaces =new AString() |
|
inlinestatic |
Receives an AString full of spaces. The AString returned must not be altered.
minSize | The minimum number of spaces that should be available in the returned AString. Defaults to 128. See notes in method description! |
|
inlinestatic |
Write the given number of spaces to a StreamWriter.
os | The output stream to write to |
qty | The quantity of spaces to write |
|
inlinestatic |
Write the given number of spaces to a TextWriter.
os | The output stream to write to |
qty | The quantity of spaces to write |