8 writes to size
System.IdentityModel (8)
System\IdentityModel\SspiHelper.cs (4)
346this.size = (data == null) ? 0 : size; 353this.size = (data == null) ? 0 : data.Length; 360this.size = size; 367this.size = channelBinding.Size;
System\IdentityModel\SspiSafeHandles.cs (2)
295outSecBuffer.size = outUnmanagedBuffer[0].count; 569outSecBuffer.size = outUnmanagedBuffer[0].count;
System\IdentityModel\SspiWrapper.cs (2)
738iBuffer.size = unmanagedBuffer[i].count; 773iBuffer.size = 0;
19 references to size
System.IdentityModel (19)
System\IdentityModel\SspiSafeHandles.cs (10)
232inUnmanagedBuffer[index].count = securityBuffer.size; 256outUnmanagedBuffer[0].count = outSecBuffer.size; 297if (outSecBuffer.size > 0) 299outSecBuffer.token = DiagnosticUtility.Utility.AllocateByteArray(outSecBuffer.size); 300Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.size); 512inUnmanagedBuffer[index].count = securityBuffer.size; 537outUnmanagedBuffer[0].count = outSecBuffer.size; 571if (outSecBuffer.size > 0) 573outSecBuffer.token = DiagnosticUtility.Utility.AllocateByteArray(outSecBuffer.size); 574Marshal.Copy(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.size);
System\IdentityModel\SspiWrapper.cs (9)
712unmanagedBuffer[i].count = iBuffer.size; 740if (iBuffer.size == 0) 747iBuffer.token = DiagnosticUtility.Utility.AllocateByteArray(iBuffer.size); 748Marshal.Copy(unmanagedBuffer[i].token, iBuffer.token, 0, iBuffer.size); 763(byte*)unmanagedBuffer[i].token + iBuffer.size <= bufferAddress + buffers[j].Length) 783if (!(iBuffer.size >= 0 && iBuffer.size <= (iBuffer.token == null ? 0 : iBuffer.token.Length - iBuffer.offset))) 785DiagnosticUtility.DebugAssert(SR.GetString(SR.SspiWrapperEncryptDecryptAssert2, iBuffer.size)); 786throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SspiWrapperEncryptDecryptAssert2, iBuffer.size)));