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

◆ GetBytes()

static unsafe void System.Net.WebHeaderEncoding.GetBytes ( string myString,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex )
inlinestaticpackage

Definition at line 47 of file WebHeaderEncoding.cs.

48 {
49 if (myString.Length == 0)
50 {
51 return;
52 }
53 fixed (byte* ptr = bytes)
54 {
55 byte* ptr2 = ptr + byteIndex;
56 int num = charIndex + charCount;
57 while (charIndex < num)
58 {
59 *(ptr2++) = (byte)myString[charIndex++];
60 }
61 }
62 }

References System.byteIndex, System.bytes, System.charCount, and System.charIndex.

Referenced by System.Net.HttpListenerResponse.SendHeaders(), and System.Net.HttpListenerResponse.SerializeHeaders().