8 writes to size
System (8)
net\System\Net\_SafeNetHandles.cs (2)
1605
outSecBuffer.
size
= outUnmanagedBuffer[0].count;
1923
outSecBuffer.
size
= outUnmanagedBuffer[0].count;
net\System\Net\_SSPIWrapper.cs (2)
435
iBuffer.
size
= unmanagedBuffer[i].count;
467
iBuffer.
size
= 0;
net\System\Net\Internal.cs (4)
1467
this.
size
= data == null || size < 0 ? 0 : Math.Min(size, data.Length - this.offset);
1473
this.
size
= data == null ? 0 : data.Length;
1481
this.
size
= size;
1487
this.
size
= (binding == null ? 0 : binding.Size);
41 references to size
System (41)
net\System\Net\_NTAuthentication.cs (12)
941
outgoingBlob = WebHeaderCollection.HeaderEncoding.GetString(decodedOutgoingBlob, 0, outSecurityBuffer.
size
);
1001
resultSize = securityBuffer[0].
size
;
1006
Buffer.BlockCopy(output, securityBuffer[1].offset, output, 4 + resultSize, securityBuffer[1].
size
);
1009
resultSize += securityBuffer[1].
size
;
1010
if (securityBuffer[2].
size
!= 0 && (forceCopy || resultSize != (count + sizes.SecurityTrailer)))
1011
Buffer.BlockCopy(output, securityBuffer[2].offset, output, 4 + resultSize, securityBuffer[2].
size
);
1013
resultSize += securityBuffer[2].
size
;
1068
return securityBuffer[1].
size
;
1121
return securityBuffer[1].
size
;
1191
return securityBuffer[1].
size
;
1245
return securityBuffer[0].
size
+ securityBuffer[1].
size
;
net\System\Net\_SafeNetHandles.cs (12)
1524
inUnmanagedBuffer[index].count = securityBuffer.
size
;
1553
outUnmanagedBuffer[0].count = outSecBuffer.
size
;
1607
if (outSecBuffer.
size
> 0)
1609
outSecBuffer.token = new byte[outSecBuffer.
size
];
1610
Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.
size
);
1849
inUnmanagedBuffer[index].count = securityBuffer.
size
;
1878
outUnmanagedBuffer[0].count = outSecBuffer.
size
;
1925
if (outSecBuffer.
size
> 0)
1927
outSecBuffer.token = new byte[outSecBuffer.
size
];
1928
Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.
size
);
2108
inUnmanagedBuffer[index].count = securityBuffer.
size
;
2222
inUnmanagedBuffer[index].count = securityBuffer.
size
;
net\System\Net\_SecureChannel.cs (4)
1170
resultSize = securityBuffer[0].
size
+ securityBuffer[1].
size
+ securityBuffer[2].
size
;
1207
count = decspc[i].
size
;
net\System\Net\_SSPIWrapper.cs (12)
238
if (Logging.On) Logging.PrintInfo(Logging.Web, SR.GetString(SR.net_log_sspi_security_context_input_buffer, "InitializeSecurityContext", (inputBuffer == null ? 0 : inputBuffer.
size
), outputBuffer.
size
, (SecurityStatus) errorCode));
253
if (Logging.On) Logging.PrintInfo(Logging.Web, SR.GetString(SR.net_log_sspi_security_context_input_buffers, "InitializeSecurityContext", (inputBuffers == null ? 0 : inputBuffers.Length), outputBuffer.
size
, (SecurityStatus) errorCode));
269
if (Logging.On) Logging.PrintInfo(Logging.Web, SR.GetString(SR.net_log_sspi_security_context_input_buffer, "AcceptSecurityContext", (inputBuffer == null ? 0 : inputBuffer.
size
), outputBuffer.
size
, (SecurityStatus) errorCode));
284
if (Logging.On) Logging.PrintInfo(Logging.Web, SR.GetString(SR.net_log_sspi_security_context_input_buffers, "AcceptSecurityContext", (inputBuffers == null ? 0 : inputBuffers.Length), outputBuffer.
size
, (SecurityStatus) errorCode));
394
unmanagedBuffer[i].count = iBuffer.
size
;
438
if (iBuffer.
size
== 0)
456
(byte*) unmanagedBuffer[i].token + iBuffer.
size
<= bufferAddress + buffers[j].Length)
475
GlobalLog.Assert(iBuffer.
size
>= 0 && iBuffer.
size
<= (iBuffer.token == null ? 0 : iBuffer.token.Length - iBuffer.offset), "SSPIWrapper::EncryptDecryptHelper|'size' out of range. [{0}]", iBuffer.
size
);
net\System\Net\Internal.cs (1)
1475
this.token =
size
== 0 ? null : data;