CharPool
Assembly: ServiceStack.Text.dll
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L5)
Declaration
public sealed class CharPool
Fields
BUFFER_LENGTH
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L18)
Declaration
public const int BUFFER_LENGTH = 1450
Methods
Flush()
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L7)
Declaration
public static void Flush()
GetBuffer()
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L21)
Declaration
public static char[] GetBuffer()
Returns
System.Char[]
GetBuffer(Int32)
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L26)
Declaration
public static char[] GetBuffer(int minSize)
Returns
System.Char[]
Parameters
Type | Name |
---|---|
System.Int32 | minSize |
GetCachedBuffer(Int32)
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L32)
Declaration
public static char[] GetCachedBuffer(int minSize)
Returns
System.Char[]
Parameters
Type | Name |
---|---|
System.Int32 | minSize |
ResizeAndFlushLeft(ref Char[], Int32, Int32, Int32)
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L76)
Declaration
public static void ResizeAndFlushLeft(ref char[] buffer, int toFitAtLeastchars, int copyFromIndex, int copychars)
Parameters
Type | Name |
---|---|
System.Char[] | buffer |
System.Int32 | toFitAtLeastchars |
System.Int32 | copyFromIndex |
System.Int32 | copychars |
ReleaseBufferToPool(ref Char[])
[ View Source](https://github.com/ServiceStack/ServiceStack/blob/main/ServiceStack.Text/src/ServiceStack.Text/Pools/CharPool .cs#L107)
Declaration
public static void ReleaseBufferToPool(ref char[] buffer)
Parameters
Type | Name |
---|---|
System.Char[] | buffer |