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