mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-14 15:48:06 +03:00
Increase max string length
This commit is contained in:
parent
33703be387
commit
5b32943aa8
@ -18,20 +18,19 @@ namespace Steamworks
|
||||
if ( StringBuilderPool == null )
|
||||
{
|
||||
//
|
||||
// The pool has 8 items. This should be safe because we shouldn't really
|
||||
// The pool has 4 items. This should be safe because we shouldn't really
|
||||
// ever be using more than 2 StringBuilders at the same time.
|
||||
//
|
||||
StringBuilderPool = new StringBuilder[8];
|
||||
StringBuilderPool = new StringBuilder[4];
|
||||
|
||||
for ( int i = 0; i < StringBuilderPool.Length; i++ )
|
||||
StringBuilderPool[i] = new StringBuilder( 4096 );
|
||||
StringBuilderPool[i] = new StringBuilder( 1024 * 32 );
|
||||
}
|
||||
|
||||
StringBuilderPoolIndex++;
|
||||
if ( StringBuilderPoolIndex >= StringBuilderPool.Length )
|
||||
StringBuilderPoolIndex = 0;
|
||||
|
||||
StringBuilderPool[StringBuilderPoolIndex].Capacity = 4096;
|
||||
StringBuilderPool[StringBuilderPoolIndex].Length = 0;
|
||||
|
||||
return StringBuilderPool[StringBuilderPoolIndex];
|
||||
|
Loading…
x
Reference in New Issue
Block a user