Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReplaceBufferAnsiInternal()

unsafe void System.Text.StringBuilder.ReplaceBufferAnsiInternal ( sbyte * newBuffer,
int newLength )
inlinepackage

Definition at line 504 of file StringBuilder.cs.

505 {
507 {
508 throw new ArgumentOutOfRangeException("capacity", SR.ArgumentOutOfRange_Capacity);
509 }
510 if (newLength > m_ChunkChars.Length)
511 {
513 }
514 int chunkLength;
516 {
518 }
519 m_ChunkOffset = 0;
521 m_ChunkPrevious = null;
522 }
static unsafe int MultiByteToWideChar(uint CodePage, uint dwFlags, byte *lpMultiByteStr, int cbMultiByte, char *lpWideCharStr, int cchWideChar)
int GetReplaceBufferCapacity(int requiredCapacity)

References System.SR.ArgumentOutOfRange_Capacity, System.Runtime.Serialization.Dictionary, System.Text.StringBuilder.GetReplaceBufferCapacity(), System.Text.StringBuilder.m_ChunkChars, System.Text.StringBuilder.m_ChunkLength, System.Text.StringBuilder.m_ChunkOffset, System.Text.StringBuilder.m_ChunkPrevious, System.Text.StringBuilder.m_MaxCapacity, and Interop.Kernel32.MultiByteToWideChar().