9 writes to bv_val
System.DirectoryServices.Protocols (9)
System\DirectoryServices\Protocols\common\BerConverter.cs (3)
319berValue.bv_val = IntPtr.Zero; 324berValue.bv_val = Marshal.AllocHGlobal(value.Length); 543managedBervalArray[i].bv_val = Marshal.AllocHGlobal(byteArray.Length);
System\DirectoryServices\Protocols\Interop\LdapPal.Unix.cs (1)
128bv_val = passwordPtr,
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (5)
612bv_val = Marshal.AllocHGlobal(byteArray.Length) 678bv_val = Marshal.AllocHGlobal(val.Length) 1217bv_val = IntPtr.Zero 1225bv_val = Marshal.AllocHGlobal(sizeof(byte) * byteControlValue.Length) 1313bv_val = Marshal.AllocHGlobal(byteArray.Length)
30 references to bv_val
System.DirectoryServices.Protocols (30)
System\DirectoryServices\Protocols\common\BerConverter.cs (9)
280Marshal.Copy(binaryValue.bv_val, encodingResult, 0, (int)binaryValue.bv_len.Value); 325Marshal.Copy(value, 0, berValue.bv_val, value.Length); 447if (berValue.bv_val != IntPtr.Zero) 448Marshal.FreeHGlobal(berValue.bv_val); 502Marshal.Copy(binaryValue.bv_val, byteArray, 0, (int)binaryValue.bv_len.Value); 544Marshal.Copy(byteArray, 0, managedBervalArray[i].bv_val, byteArray.Length); 575if (managedBerval.bv_val != IntPtr.Zero) 577Marshal.FreeHGlobal(managedBerval.bv_val); 610Marshal.Copy(ber.bv_val, berArray, 0, (int)ber.bv_len.Value);
System\DirectoryServices\Protocols\Interop\SafeHandles.Unix.cs (1)
68if (value.bv_val == IntPtr.Zero || value.bv_len.Value == 0)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (16)
614Marshal.Copy(byteArray, 0, berValuePtr.bv_val, byteArray.Length); 680Marshal.Copy(val, 0, berValuePtr.bv_val, val.Length); 796if (managedServerControls[i].ldctl_value.bv_val != IntPtr.Zero) 798Marshal.FreeHGlobal(managedServerControls[i].ldctl_value.bv_val); 830if (managedClientControls[i].ldctl_value.bv_val != IntPtr.Zero) 832Marshal.FreeHGlobal(managedClientControls[i].ldctl_value.bv_val); 860if (berValuePtr != null && berValuePtr.bv_val != IntPtr.Zero) 862Marshal.FreeHGlobal(berValuePtr.bv_val); 1227Marshal.Copy(byteControlValue, 0, managedControls[i].ldctl_value.bv_val, (int)managedControls[i].ldctl_value.bv_len.Value); 1317ptrToFree.Add(berValues[j].bv_val); 1318Marshal.Copy(byteArray, 0, berValues[j].bv_val, (int)berValues[j].bv_len.Value); 1465if (val.bv_len.Value != 0 && val.bv_val != IntPtr.Zero) 1468Marshal.Copy(val.bv_val, requestValueArray, 0, (int)val.bv_len.Value); 1786if (bervalue.bv_len.Value > 0 && bervalue.bv_val != IntPtr.Zero) 1789Marshal.Copy(bervalue.bv_val, byteArray, 0, (int)bervalue.bv_len.Value); 1925Marshal.Copy(control.ldctl_value.bv_val, bytes, 0, (int)control.ldctl_value.bv_len.Value);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (4)
696if (managedServerControls[i].ldctl_value.bv_val != IntPtr.Zero) 698Marshal.FreeHGlobal(managedServerControls[i].ldctl_value.bv_val); 730if (managedClientControls[i].ldctl_value.bv_val != IntPtr.Zero) 731Marshal.FreeHGlobal(managedClientControls[i].ldctl_value.bv_val);