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

◆ ConcatInto()

static int System.Text.DecoderNLS.ConcatInto ( ReadOnlySpan< byte > srcLeft,
ReadOnlySpan< byte > srcRight,
Span< byte > dest )
inlinestaticprivateinherited

Definition at line 273 of file DecoderNLS.cs.

274 {
275 int num = 0;
276 int num2 = 0;
277 while (true)
278 {
279 if (num2 < srcLeft.Length)
280 {
281 if ((uint)num >= (uint)dest.Length)
282 {
283 break;
284 }
285 dest[num++] = srcLeft[num2];
286 num2++;
287 continue;
288 }
289 for (int i = 0; i < srcRight.Length; i++)
290 {
291 if ((uint)num >= (uint)dest.Length)
292 {
293 break;
294 }
295 dest[num++] = srcRight[i];
296 }
297 break;
298 }
299 return num;
300 }
int Length
Definition Span.cs:70

References System.ReadOnlySpan< T >.Length, and System.Span< T >.Length.

Referenced by System.Text.DecoderNLS.DrainLeftoverDataForGetCharCount(), and System.Text.DecoderNLS.DrainLeftoverDataForGetChars().