49 references to PtrSize
System.Data (49)
fx\src\data\System\Data\Common\AdapterUtil.cs (3)
2446if (4 == ADP.PtrSize) { 2449Debug.Assert(8 == ADP.PtrSize, "8 != IntPtr.Size"); // MDAC 73747 2454if (4 == ADP.PtrSize) {
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (1)
177ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetStmtAttrW(this, attribute, out value, ADP.PtrSize, out stringLength);
fx\src\data\System\Data\OleDb\DBBindings.cs (5)
168_dbbindings[_index].obLength = (IntPtr) (_dataBufferSize + ADP.PtrSize); 169_dbbindings[_index].obValue = (IntPtr) (_dataBufferSize + ADP.PtrSize + ADP.PtrSize); 170_dataBufferSize += ADP.PtrSize + ADP.PtrSize;
fx\src\data\System\Data\OleDb\DBPropSet.cs (1)
130int cProperties = Marshal.ReadInt32(ptr, offset + ADP.PtrSize);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (4)
160static private readonly NativeDBType D_BSTR = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.BSTR, NativeDBType.BSTR, S_BSTR, typeof(System.String), NativeDBType.BSTR, DbType.String ); // 2 - integer4 (pointer) 175static private readonly NativeDBType D_IDispatch = new NativeDBType(0xff, ADP.PtrSize, true, false, OleDbType.IDispatch, NativeDBType.IDISPATCH, S_IDISPATCH, typeof(System.Object), NativeDBType.IDISPATCH, DbType.Object ); // 17 - integer4 (pointer) 176static private readonly NativeDBType D_IUnknown = new NativeDBType(0xff, ADP.PtrSize, true, false, OleDbType.IUnknown, NativeDBType.IUNKNOWN, S_IUNKNOWN, typeof(System.Object), NativeDBType.IUNKNOWN, DbType.Object ); // 18 - integer4 (pointer) // MDAC 64040 195static private readonly NativeDBType D_Chapter = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.Empty, NativeDBType.HCHAPTER, S_UDT, typeof(IDataReader), NativeDBType.HCHAPTER, DbType.Object ); // 36 - (hierarchical chaper)
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (1)
515static internal readonly int SizeOf_Variant = 8 + (2 * ADP.PtrSize); // 16 on 32bit, 24 on 64bit
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (5)
1453maxLen = ADP.PtrSize; 1468maxLen = ADP.PtrSize; 1485maxLen = ADP.PtrSize; 2084if (4 == ADP.PtrSize) { 2092if (4 == ADP.PtrSize) {
fx\src\data\System\Data\OleDb\OleDbParameter.cs (3)
296bytecount = ADP.PtrSize; 345bytecount = ADP.PtrSize; 360bytecount = ADP.PtrSize;
fx\src\data\System\Data\OleDb\PropertyIDSet.cs (2)
23static private readonly int PropertyIDSetAndValueSize = ODB.SizeOf_tagDBPROPIDSET + ADP.PtrSize; // sizeof(tagDBPROPIDSET) + sizeof(int) 38Marshal.WriteInt32(base.handle, ADP.PtrSize, /*propertyid count*/1);
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
121int infoCount = Marshal.ReadInt32(ptr, offset + ADP.PtrSize);
fx\src\data\System\Data\OleDb\RowBinding.cs (9)
227Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 242Marshal.WriteIntPtr(base.handle, offset + ADP.PtrSize, ptr); 258Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 272Marshal.WriteIntPtr(base.handle, offset + ADP.PtrSize, pinnedValue); // original parameter value 448IntPtr originalValue = Marshal.ReadIntPtr(buffer, valueOffset + ADP.PtrSize); 459Marshal.WriteIntPtr(buffer, valueOffset + ADP.PtrSize, ADP.PtrZero); 472IntPtr originalValue = Marshal.ReadIntPtr(buffer, valueOffset + ADP.PtrSize); 481Marshal.WriteIntPtr(buffer, valueOffset + ADP.PtrSize, ADP.PtrZero); 541Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment");
fx\src\data\System\Data\OleDb\SafeHandles.cs (2)
91internal RowHandleBuffer(IntPtr rowHandleFetchCount) : base((int)rowHandleFetchCount*ADP.PtrSize) { 95IntPtr value = ReadIntPtr( index * ADP.PtrSize);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (12)
68Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 93Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 142Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 170Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 220Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 264Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 308Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 346Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 386Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 408Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 454Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 496Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment");