33 references to WriteBuffer
System (33)
net\System\Net\_Connection.cs (1)
1565
Debug.Assert(request.
WriteBuffer
== null);
net\System\Net\_ConnectStream.cs (1)
2176
byte[] writeBuffer = m_Request.
WriteBuffer
;
net\System\Net\HttpWebRequest.cs (31)
4386
GlobalLog.Assert(WriteBufferLength != 0 &&
WriteBuffer
[0] < 0x80 &&
WriteBuffer
[0] != 0x0, "HttpWebRequest#{0}::EndSubmitRequest()|Invalid WriteBuffer generated.", ValidationHelper.HashString(this));
4698
offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length,
WriteBuffer
, 0);
4699
WriteBuffer
[offset++] = (byte)' ';
4700
host.Copy(
WriteBuffer
, offset);
4702
WriteBuffer
[offset++] = (byte)' ';
4796
offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length,
WriteBuffer
, 0);
4797
WriteBuffer
[offset++] = (byte)' ';
4798
offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length,
WriteBuffer
, offset);
4799
host.Copy(
WriteBuffer
, offset);
4801
offset += Encoding.ASCII.GetBytes(path, 0, path.Length,
WriteBuffer
, offset);
4802
WriteBuffer
[offset++] = (byte)' ';
4862
offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length,
WriteBuffer
, 0);
4863
WriteBuffer
[offset++] = (byte)' ';
4864
offset += Encoding.ASCII.GetBytes(scheme, 0, scheme.Length,
WriteBuffer
, offset);
4865
offset += Encoding.ASCII.GetBytes(userInfo, 0, userInfo.Length,
WriteBuffer
, offset);
4866
host.Copy(
WriteBuffer
, offset);
4868
offset += Encoding.ASCII.GetBytes(path, 0, path.Length,
WriteBuffer
, offset);
4869
WriteBuffer
[offset++] = (byte)' ';
4900
offset = Encoding.ASCII.GetBytes(CurrentMethod.Name, 0, CurrentMethod.Name.Length,
WriteBuffer
, 0);
4901
WriteBuffer
[offset++] = (byte)' ';
4902
offset += Encoding.ASCII.GetBytes(pathAndQuery, 0, pathAndQuery.Length,
WriteBuffer
, offset);
4903
WriteBuffer
[offset++] = (byte)' ';
5096
Buffer.BlockCopy(HttpBytes, 0,
WriteBuffer
, offset, HttpBytes.Length);
5099
WriteBuffer
[offset++] = (byte)'1';
5100
WriteBuffer
[offset++] = (byte)'.';
5101
WriteBuffer
[offset++] = IsVersionHttp10 ? (byte)'0' : (byte)'1';
5102
WriteBuffer
[offset++] = (byte)'\r';
5103
WriteBuffer
[offset++] = (byte)'\n';
5104
if (Logging.On) Logging.PrintInfo(Logging.Web, this, "Request: "+Encoding.ASCII.GetString(
WriteBuffer
, 0, offset));
5109
WebHeaderCollection.HeaderEncoding.GetBytes(requestHeadersString, 0, requestHeadersString.Length,
WriteBuffer
, offset);