154 references to ValueUtilsSmi
System.Data (154)
fx\src\data\Microsoft\SqlServer\Server\SmiGettersStream.cs (2)
58
return
ValueUtilsSmi
.GetBytesInternal( _sink, _getters, _ordinal, _metaData, 0, null, 0, 0, false );
84
long bytesRead =
ValueUtilsSmi
.GetBytesInternal( _sink, _getters, _ordinal, _metaData, _readPosition, buffer, offset, count, false );
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (3)
72
_lengthWritten =
ValueUtilsSmi
.SetBytesLength(_sink, _setters, _ordinal, _metaData, _lengthWritten);
83
ValueUtilsSmi
.SetBytesLength(_sink, _setters, _ordinal, _metaData, value);
91
_lengthWritten +=
ValueUtilsSmi
.SetBytes(_sink, _setters, _ordinal, _metaData, _lengthWritten, buffer, offset, count);
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (73)
77
return
ValueUtilsSmi
.GetValue200(
86
return
ValueUtilsSmi
.GetValue(
140
return
ValueUtilsSmi
.GetBoolean(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
145
return
ValueUtilsSmi
.GetByte(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
150
return
ValueUtilsSmi
.GetBytes(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), fieldOffset, buffer, bufferOffset, length, true);
160
return
ValueUtilsSmi
.GetChars(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), fieldOffset, buffer, bufferOffset, length);
165
return
ValueUtilsSmi
.GetGuid(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
170
return
ValueUtilsSmi
.GetInt16(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
175
return
ValueUtilsSmi
.GetInt32(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
180
return
ValueUtilsSmi
.GetInt64(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
185
return
ValueUtilsSmi
.GetSingle(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
190
return
ValueUtilsSmi
.GetDouble(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
197
return
ValueUtilsSmi
.GetString(_eventSink, _recordBuffer, ordinal, __maxNVarCharForXml);
200
return
ValueUtilsSmi
.GetString(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
206
return
ValueUtilsSmi
.GetDecimal(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
211
return
ValueUtilsSmi
.GetDateTime(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
216
return
ValueUtilsSmi
.GetDateTimeOffset(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
221
return
ValueUtilsSmi
.GetTimeSpan(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
232
return
ValueUtilsSmi
.IsDBNull( _eventSink, _recordBuffer, ordinal );
253
return
ValueUtilsSmi
.GetSqlValue200(_eventSink, _recordBuffer, ordinal, metaData, _recordContext);
255
return
ValueUtilsSmi
.GetSqlValue( _eventSink, _recordBuffer, ordinal, metaData, _recordContext );
275
return
ValueUtilsSmi
.GetSqlBinary(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
280
return
ValueUtilsSmi
.GetSqlBytes(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), _recordContext);
285
return
ValueUtilsSmi
.GetSqlXml(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), _recordContext);
290
return
ValueUtilsSmi
.GetSqlBoolean(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
295
return
ValueUtilsSmi
.GetSqlByte(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
300
return
ValueUtilsSmi
.GetSqlChars(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), _recordContext);
305
return
ValueUtilsSmi
.GetSqlInt16(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
310
return
ValueUtilsSmi
.GetSqlInt32(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
315
return
ValueUtilsSmi
.GetSqlInt64(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
320
return
ValueUtilsSmi
.GetSqlSingle(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
325
return
ValueUtilsSmi
.GetSqlDouble(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
330
return
ValueUtilsSmi
.GetSqlMoney(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
335
return
ValueUtilsSmi
.GetSqlDateTime(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
340
return
ValueUtilsSmi
.GetSqlDecimal(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
345
return
ValueUtilsSmi
.GetSqlString(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
350
return
ValueUtilsSmi
.GetSqlGuid(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal));
381
ValueUtilsSmi
.SetCompatibleValueV200(_eventSink, _recordBuffer, i, GetSmiMetaData(i), values[i], typeCodes[i], 0, 0, null);
384
ValueUtilsSmi
.SetCompatibleValue(_eventSink, _recordBuffer, i, GetSmiMetaData(i), values[i], typeCodes[i], 0);
401
ValueUtilsSmi
.SetCompatibleValueV200(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value, typeCode, 0, 0, null);
404
ValueUtilsSmi
.SetCompatibleValue(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value, typeCode, 0);
410
ValueUtilsSmi
.SetBoolean(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
415
ValueUtilsSmi
.SetByte(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
420
ValueUtilsSmi
.SetBytes(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), fieldOffset, buffer, bufferOffset, length);
430
ValueUtilsSmi
.SetChars(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), fieldOffset, buffer, bufferOffset, length);
435
ValueUtilsSmi
.SetInt16(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
440
ValueUtilsSmi
.SetInt32(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
445
ValueUtilsSmi
.SetInt64(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
450
ValueUtilsSmi
.SetSingle(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
455
ValueUtilsSmi
.SetDouble(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
460
ValueUtilsSmi
.SetString(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
465
ValueUtilsSmi
.SetDecimal(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
470
ValueUtilsSmi
.SetDateTime(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
475
ValueUtilsSmi
.SetTimeSpan(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value, SmiVersion >= SmiContextFactory.KatmaiVersion);
480
ValueUtilsSmi
.SetDateTimeOffset(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value, SmiVersion >= SmiContextFactory.KatmaiVersion);
485
ValueUtilsSmi
.SetDBNull(_eventSink, _recordBuffer, ordinal, true);
490
ValueUtilsSmi
.SetGuid(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
495
ValueUtilsSmi
.SetSqlBoolean(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
500
ValueUtilsSmi
.SetSqlByte(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
505
ValueUtilsSmi
.SetSqlInt16(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
510
ValueUtilsSmi
.SetSqlInt32(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
515
ValueUtilsSmi
.SetSqlInt64(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
520
ValueUtilsSmi
.SetSqlSingle(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
525
ValueUtilsSmi
.SetSqlDouble(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
530
ValueUtilsSmi
.SetSqlMoney(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
535
ValueUtilsSmi
.SetSqlDateTime(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
540
ValueUtilsSmi
.SetSqlXml(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
545
ValueUtilsSmi
.SetSqlDecimal(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
550
ValueUtilsSmi
.SetSqlString(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
555
ValueUtilsSmi
.SetSqlBinary(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
560
ValueUtilsSmi
.SetSqlGuid(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
565
ValueUtilsSmi
.SetSqlChars(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
570
ValueUtilsSmi
.SetSqlBytes(_eventSink, _recordBuffer, ordinal, GetSmiMetaData(ordinal), value);
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (6)
138
ValueUtilsSmi
.FillCompatibleSettersFromReader(_eventSink, recordBuffer, new List<SmiExtendedMetaData>(columnMetaData), reader);
141
ValueUtilsSmi
.FillCompatibleITypedSettersFromReader(_eventSink, recordBuffer, columnMetaData, reader);
183
ValueUtilsSmi
.FillCompatibleSettersFromRecord(_eventSink, recordBuffer, columnMetaData, record, null /* no default values */);
186
ValueUtilsSmi
.FillCompatibleITypedSettersFromRecord(_eventSink, recordBuffer, columnMetaData, record);
270
ValueUtilsSmi
.FillCompatibleSettersFromRecord(_eventSink, recordBuffer, columnMetaData, record, null /* no default values */);
273
ValueUtilsSmi
.FillCompatibleITypedSettersFromRecord(_eventSink, recordBuffer, columnMetaData, record);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (11)
696
Debug.Assert( !
ValueUtilsSmi
.IsDBNull_Unchecked( sink, getters, ordinal ), "Should not try to get a SqlSequentialStreamSmi on a null column" );
708
Debug.Assert(!
ValueUtilsSmi
.IsDBNull_Unchecked(sink, getters, ordinal), "Should not try to get a SqlSequentialTextReaderSmi on a null column");
720
bool isDbNull =
ValueUtilsSmi
.IsDBNull_Unchecked(sink, getters, ordinal);
748
bool isDbNull =
ValueUtilsSmi
.IsDBNull_Unchecked(sink, getters, ordinal);
1724
ValueUtilsSmi
.SetDBNull_Unchecked( sink, setters, i );
1730
ValueUtilsSmi
.SetInt64_Unchecked( sink, setters, i, reader.GetInt64(i) );
1734
ValueUtilsSmi
.SetSqlBytes_LengthChecked( sink, setters, i, metaData[i], reader.GetSqlBytes(i), 0 );
1850
ValueUtilsSmi
.SetDBNull_Unchecked(sink, setters, i);
2045
ValueUtilsSmi
.SetDBNull_Unchecked(sink, setters, i);
2165
ValueUtilsSmi
.SetDBNull_Unchecked(sink, setters, i);
3183
Stream copy =
ValueUtilsSmi
.CopyIntoNewSmiScratchStream( s, sink, context );
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
5299
result =
ValueUtilsSmi
.GetOutputParameterV200Smi(
5303
result =
ValueUtilsSmi
.GetOutputParameterV3Smi(
6337
ValueUtilsSmi
.SetCompatibleValueV200(EventSink, requestExecutor, index, requestMetaData[index], value, typeCode, param.Offset, param.Size, peekAheadValues[index]);
6340
ValueUtilsSmi
.SetCompatibleValue( EventSink, requestExecutor, index, requestMetaData[index], value, typeCode, param.Offset );
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (51)
108
return
ValueUtilsSmi
.GetValue200(_readerEventSink, (SmiTypedGetterSetter)_currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
111
return
ValueUtilsSmi
.GetValue(_readerEventSink, _currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
122
return (T)
ValueUtilsSmi
.GetSqlValue200(_readerEventSink, (SmiTypedGetterSetter)_currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
125
return (T)
ValueUtilsSmi
.GetSqlValue(_readerEventSink, _currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
131
return (T)
ValueUtilsSmi
.GetValue200(_readerEventSink, (SmiTypedGetterSetter)_currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
134
return (T)
ValueUtilsSmi
.GetValue(_readerEventSink, _currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
153
return
ValueUtilsSmi
.SqlDbTypeToStorageType(valueMetaData.SqlDbType);
196
return
ValueUtilsSmi
.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal);
206
return
ValueUtilsSmi
.GetBoolean(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
211
return
ValueUtilsSmi
.GetByte(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
216
return
ValueUtilsSmi
.GetBytes(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], fieldOffset, buffer, bufferOffset, length, true);
222
return
ValueUtilsSmi
.GetBytesInternal(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], fieldOffset, buffer, bufferOffset, length, false);
237
return
ValueUtilsSmi
.GetChars(_readerEventSink, _currentColumnValuesV3, ordinal, metaData, fieldOffset, buffer, bufferOffset, length);
242
return
ValueUtilsSmi
.GetGuid(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
247
return
ValueUtilsSmi
.GetInt16(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
252
return
ValueUtilsSmi
.GetInt32(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
257
return
ValueUtilsSmi
.GetInt64(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
262
return
ValueUtilsSmi
.GetSingle(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
267
return
ValueUtilsSmi
.GetDouble(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
272
return
ValueUtilsSmi
.GetString(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
277
return
ValueUtilsSmi
.GetDecimal(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
282
return
ValueUtilsSmi
.GetDateTime(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
730
return
ValueUtilsSmi
.GetSqlBinary(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
735
return
ValueUtilsSmi
.GetSqlBoolean(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
740
return
ValueUtilsSmi
.GetSqlByte(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
745
return
ValueUtilsSmi
.GetSqlInt16(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
750
return
ValueUtilsSmi
.GetSqlInt32(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
755
return
ValueUtilsSmi
.GetSqlInt64(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
760
return
ValueUtilsSmi
.GetSqlSingle(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
765
return
ValueUtilsSmi
.GetSqlDouble(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
770
return
ValueUtilsSmi
.GetSqlMoney(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
775
return
ValueUtilsSmi
.GetSqlDateTime(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
781
return
ValueUtilsSmi
.GetSqlDecimal(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
786
return
ValueUtilsSmi
.GetSqlString(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
791
return
ValueUtilsSmi
.GetSqlGuid(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal]);
796
return
ValueUtilsSmi
.GetSqlChars(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], _currentConnection.InternalContext);
801
return
ValueUtilsSmi
.GetSqlBytes(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], _currentConnection.InternalContext);
806
return
ValueUtilsSmi
.GetSqlXml(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], _currentConnection.InternalContext);
811
return
ValueUtilsSmi
.GetTimeSpan(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], _currentConnection.IsKatmaiOrNewer);
816
return
ValueUtilsSmi
.GetDateTimeOffset(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], _currentConnection.IsKatmaiOrNewer);
824
return
ValueUtilsSmi
.GetSqlValue200(_readerEventSink, (SmiTypedGetterSetter)_currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext);
826
return
ValueUtilsSmi
.GetSqlValue(_readerEventSink, _currentColumnValuesV3, ordinal, metaData, _currentConnection.InternalContext); ;
860
if ((metaData.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(CommandBehavior.SequentialAccess)) && (!
ValueUtilsSmi
.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
864
_currentStream =
ValueUtilsSmi
.GetSequentialStream(_readerEventSink, _currentColumnValuesV3, ordinal, metaData);
868
return
ValueUtilsSmi
.GetStream(_readerEventSink, _currentColumnValuesV3, ordinal, metaData);
878
if ((metaData.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(CommandBehavior.SequentialAccess)) && (!
ValueUtilsSmi
.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
882
_currentTextReader =
ValueUtilsSmi
.GetSequentialTextReader(_readerEventSink, _currentColumnValuesV3, ordinal, metaData);
886
return
ValueUtilsSmi
.GetTextReader(_readerEventSink, _currentColumnValuesV3, ordinal, metaData);
899
if ((IsCommandBehavior(CommandBehavior.SequentialAccess)) && (!
ValueUtilsSmi
.IsDBNull(_readerEventSink, _currentColumnValuesV3, ordinal))) {
904
_currentStream =
ValueUtilsSmi
.GetSequentialStream(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], bypassTypeCheck: true);
908
stream =
ValueUtilsSmi
.GetStream(_readerEventSink, _currentColumnValuesV3, ordinal, _currentMetaData[ordinal], bypassTypeCheck: true);
fx\src\data\System\Data\SqlClient\SqlSequentialStreamSmi.cs (1)
74
bytesRead =
ValueUtilsSmi
.GetBytes_Unchecked(_sink, _getters, _columnIndex, _position, buffer, offset, bytesNeeded);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReaderSmi.cs (2)
62
int charsRead =
ValueUtilsSmi
.GetChars_Unchecked(_sink, _getters, _columnIndex, _position, tempBuffer, 0, 1);
98
int newCharsRead =
ValueUtilsSmi
.GetChars_Unchecked(_sink, _getters, _columnIndex, _position, buffer, index + charsRead, charsNeeded);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
8818
MSS.
ValueUtilsSmi
.SetCompatibleValueV200(