21 references to Length
System.Data (21)
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
626
if(null == parameterBuffer || parameterBuffer.
Length
< parameterBufferSize) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (10)
814
int cbMaxData = buffer.
Length
- 4;
821
if (GetData(i, ODBC32.SQL_C.WCHAR, buffer.
Length
- 2, out lengthOrIndicator)) {
861
gotData = GetData(i, ODBC32.SQL_C.WCHAR, buffer.
Length
- 2, out lengthOrIndicator);
1192
cbReadMax = (int)Math.Min(cbLength, internalNativeBuffer.
Length
- 4);
1200
cbReadMax = (int)Math.Min(cbLength, internalNativeBuffer.
Length
- 2);
1283
int cbBufferLen = Buffer.
Length
- 4;
1490
return GetData(i, sqlctype, Buffer.
Length
- 4, out dummy);
1520
Debug.Assert(cb <= Buffer.
Length
-2, "GetData needs to Reallocate. Perf bug");
2048
Debug.Assert(buffer.
Length
>= 264, "Native buffer to small (_buffer.Length < 264)");
2214
Debug.Assert(buffer.
Length
>= 544, "Native buffer to small (_buffer.Length < 544)");
fx\src\data\System\Data\Odbc\OdbcUtils.cs (8)
25
return checked((short)
Length
);
40
Debug.Assert((
Length
>= cb), "Native buffer too small ");
41
cb = Math.Min(cb/2, (
Length
-2)/2);
48
Debug.Assert((
Length
>= cb), "Native buffer too small ");
49
cb = Math.Min(cb,
Length
);
178
Debug.Assert(rgChars.Length < (base.
Length
- valueOffset), "attempting to extend parameter buffer!");
189
Debug.Assert(rgChars.Length < (base.
Length
- valueOffset), "attempting to extend parameter buffer!");
217
Debug.Assert(length < (base.
Length
- valueOffset), "attempting to extend parameter buffer!");
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (2)
566
SafeNativeMethods.ZeroMemory(ptr, (IntPtr)
Length
);
686
if ((offset < 0) || (count < 0) || (
Length
< checked(offset + count))) {