18 writes to token
System (18)
net\System\Net\_SafeNetHandles.cs (16)
1530
inUnmanagedBuffer[index].
token
= securityBuffer.unmanagedToken.DangerousGetHandle();
1534
inUnmanagedBuffer[index].
token
= IntPtr.Zero;
1539
inUnmanagedBuffer[index].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.token, securityBuffer.offset);
1556
outUnmanagedBuffer[0].
token
= IntPtr.Zero;
1558
outUnmanagedBuffer[0].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(outSecBuffer.token, outSecBuffer.offset);
1855
inUnmanagedBuffer[index].
token
= securityBuffer.unmanagedToken.DangerousGetHandle();
1859
inUnmanagedBuffer[index].
token
= IntPtr.Zero;
1864
inUnmanagedBuffer[index].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.token, securityBuffer.offset);
1882
outUnmanagedBuffer[0].
token
= IntPtr.Zero;
1884
outUnmanagedBuffer[0].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(outSecBuffer.token, outSecBuffer.offset);
2114
inUnmanagedBuffer[index].
token
= securityBuffer.unmanagedToken.DangerousGetHandle();
2117
inUnmanagedBuffer[index].
token
= IntPtr.Zero;
2121
inUnmanagedBuffer[index].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.token, securityBuffer.offset);
2228
inUnmanagedBuffer[index].
token
= securityBuffer.unmanagedToken.DangerousGetHandle();
2232
inUnmanagedBuffer[index].
token
= IntPtr.Zero;
2237
inUnmanagedBuffer[index].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(securityBuffer.token, securityBuffer.offset);
net\System\Net\_SSPIWrapper.cs (2)
398
unmanagedBuffer[i].
token
= IntPtr.Zero;
403
unmanagedBuffer[i].
token
= Marshal.UnsafeAddrOfPinnedArrayElement(iBuffer.token, iBuffer.offset);
7 references to token
System (7)
net\System\Net\_SafeNetHandles.cs (4)
1610
Marshal.Copy(outUnmanagedBuffer[0].
token
, outSecBuffer.token, 0, outSecBuffer.size);
1745
handleTemplate.Set(((SecurityBufferStruct*)outputBuffer.UnmanagedPointer)->
token
); //ATTN: on 64 BIT that is still +8 cause of 2* c++ unsigned long == 8 bytes
1928
Marshal.Copy(outUnmanagedBuffer[0].
token
, outSecBuffer.token, 0, outSecBuffer.size);
2058
handleTemplate.Set(((SecurityBufferStruct*)outputBuffer.UnmanagedPointer)->
token
); //ATTN: on 64 BIT that is still +8 cause of 2* c++ unsigned long == 8 bytes
net\System\Net\_SSPIWrapper.cs (3)
455
if ((byte*) unmanagedBuffer[i].
token
>= bufferAddress &&
456
(byte*) unmanagedBuffer[i].
token
+ iBuffer.size <= bufferAddress + buffers[j].Length)
458
iBuffer.offset = (int) ((byte*) unmanagedBuffer[i].
token
- bufferAddress);