System.Net.WebHeaderCollection.HeaderEncoding.GetBytes C# (CSharp) Method

GetBytes() static private method

static private GetBytes ( string myString, int charIndex, int charCount, byte bytes, int byteIndex ) : void
myString string
charIndex int
charCount int
bytes byte
byteIndex int
return void
            internal unsafe static void GetBytes(string myString, int charIndex, int charCount, byte[] bytes, int byteIndex) {
                if (myString.Length==0) {
                    return;
                }
                fixed (byte *bufferPointer = bytes) {
                    byte* newBufferPointer = bufferPointer + byteIndex;
                    int finalIndex = charIndex + charCount;
                    while (charIndex<finalIndex) {
                        *newBufferPointer++ = (byte)myString[charIndex++];
                    }
                }
            }
            internal unsafe static byte[] GetBytes(string myString) {

Same methods

WebHeaderCollection.HeaderEncoding::GetBytes ( string myString ) : byte[]
WebHeaderCollection.HeaderEncoding