21 references to Length
System.Data.Odbc (21)
Common\System\Data\ProviderBase\DbBuffer.cs (2)
651SafeNativeMethods.ZeroMemory(ptr, Length); 787if ((offset < 0) || (count < 0) || (Length < checked(offset + count)))
System\Data\Odbc\OdbcCommand.cs (1)
688if (null == parameterBuffer || parameterBuffer.Length < parameterBufferSize)
System\Data\Odbc\OdbcDataReader.cs (10)
954int cbMaxData = buffer.Length - 4; 961if (GetData(i, ODBC32.SQL_C.WCHAR, buffer.Length - 2, out lengthOrIndicator)) 1005gotData = GetData(i, ODBC32.SQL_C.WCHAR, buffer.Length - 2, out lengthOrIndicator); 1370cbReadMax = (int)Math.Min(cbLength, internalNativeBuffer.Length - 4); 1379cbReadMax = (int)Math.Min(cbLength, internalNativeBuffer.Length - 2); 1465int cbBufferLen = Buffer.Length - 4; 1701return GetData(i, sqlctype, Buffer.Length - 4, out _); 1733Debug.Assert(cb <= Buffer.Length - 2, "GetData needs to Reallocate. Perf bug"); 2324Debug.Assert(buffer.Length >= 264, "Native buffer to small (_buffer.Length < 264)"); 2505Debug.Assert(buffer.Length >= 544, "Native buffer to small (_buffer.Length < 544)");
System\Data\Odbc\OdbcUtils.cs (8)
21return checked((short)Length); 38Debug.Assert((Length >= cb), "Native buffer too small "); 39cb = Math.Min(cb / 2, (Length - 2) / 2); 46Debug.Assert((Length >= cb), "Native buffer too small "); 47cb = Math.Min(cb, Length); 180Debug.Assert(rgChars.Length < (base.Length - valueOffset), "attempting to extend parameter buffer!"); 193Debug.Assert(rgChars.Length < (base.Length - valueOffset), "attempting to extend parameter buffer!"); 222Debug.Assert(length < (base.Length - valueOffset), "attempting to extend parameter buffer!");