10 writes to bv_len
System.DirectoryServices.Protocols (10)
src\runtime\src\libraries\Common\src\Interop\Interop.Ldap.cs (1)
196public static ref CLong GetPinnableReference(BerVal managed) => ref (managed is null ? ref Unsafe.NullRef<CLong>() : ref managed.bv_len);
System\DirectoryServices\Protocols\common\BerConverter.cs (3)
318berValue.bv_len = new CLong(0); 323berValue.bv_len = new CLong(value.Length); 542managedBervalArray[i].bv_len = new CLong(byteArray.Length);
System\DirectoryServices\Protocols\Interop\LdapPal.Unix.cs (1)
127bv_len = new CLong(MemoryMarshal.CreateReadOnlySpanFromNullTerminated((byte*)passwordPtr).Length),
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (5)
611bv_len = new CLong(byteArray.Length), 677bv_len = new CLong(val.Length), 1216bv_len = new CLong(0), 1224bv_len = new CLong(byteControlValue.Length), 1312bv_len = new CLong(byteArray.Length),
18 references to bv_len
System.DirectoryServices.Protocols (18)
System\DirectoryServices\Protocols\common\BerConverter.cs (7)
272if (binaryValue == null || binaryValue.bv_len.Value == 0) 278encodingResult = new byte[binaryValue.bv_len.Value]; 280Marshal.Copy(binaryValue.bv_val, encodingResult, 0, (int)binaryValue.bv_len.Value); 501byteArray = new byte[binaryValue.bv_len.Value]; 502Marshal.Copy(binaryValue.bv_val, byteArray, 0, (int)binaryValue.bv_len.Value); 609byte[] berArray = new byte[ber.bv_len.Value]; 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 (10)
1227Marshal.Copy(byteControlValue, 0, managedControls[i].ldctl_value.bv_val, (int)managedControls[i].ldctl_value.bv_len.Value); 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) 1467requestValueArray = new byte[val.bv_len.Value]; 1468Marshal.Copy(val.bv_val, requestValueArray, 0, (int)val.bv_len.Value); 1786if (bervalue.bv_len.Value > 0 && bervalue.bv_val != IntPtr.Zero) 1788byteArray = new byte[bervalue.bv_len.Value]; 1789Marshal.Copy(bervalue.bv_val, byteArray, 0, (int)bervalue.bv_len.Value); 1924byte[] bytes = new byte[control.ldctl_value.bv_len.Value]; 1925Marshal.Copy(control.ldctl_value.bv_val, bytes, 0, (int)control.ldctl_value.bv_len.Value);