Skip to main content

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​
TypeName
System.Int32minSize

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​
TypeName
System.Int32minSize

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​
TypeName
System.Char[]buffer
System.Int32toFitAtLeastchars
System.Int32copyFromIndex
System.Int32copychars

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​
TypeName
System.Char[]buffer