1 write to _stateObj
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
44
_stateObj
= stateObj;
172 references to _stateObj
System.Data (172)
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (172)
63
_stateObj
.Parser.WriteUnsignedLong(TdsEnums.SQL_PLP_NULL,
_stateObj
);
84
_stateObj
.WriteByte(TdsEnums.FIXEDNULL);
96
_stateObj
.Parser.WriteShort(TdsEnums.VARNULL,
_stateObj
);
103
_stateObj
.Parser.WriteInt(TdsEnums.FIXEDNULL,
_stateObj
);
120
_stateObj
.Parser.WriteSqlVariantHeader(3, TdsEnums.SQLBIT, 0,
_stateObj
);
123
_stateObj
.WriteByte((byte)_metaData.MaxLength);
126
_stateObj
.WriteByte(1);
129
_stateObj
.WriteByte(0);
138
_stateObj
.Parser.WriteSqlVariantHeader(3, TdsEnums.SQLINT1, 0,
_stateObj
);
141
_stateObj
.WriteByte((byte)_metaData.MaxLength);
143
_stateObj
.WriteByte(value);
165
_stateObj
.Parser.WriteUnsignedLong(TdsEnums.SQL_PLP_UNKNOWNLEN,
_stateObj
);
170
_stateObj
.Parser.WriteInt(length,
_stateObj
);
171
_stateObj
.WriteByteArray(buffer, length, bufferOffset);
183
_stateObj
.Parser.WriteSqlVariantHeader(4 + length, TdsEnums.SQLBIGVARBINARY, 2,
_stateObj
);
185
_stateObj
.Parser.WriteShort(length,
_stateObj
);
186
_stateObj
.WriteByteArray(buffer, length, bufferOffset);
199
_stateObj
.Parser.WriteLong(0,
_stateObj
);
207
_stateObj
.Parser.WriteSqlVariantHeader(4, TdsEnums.SQLBIGVARBINARY, 2,
_stateObj
);
209
_stateObj
.Parser.WriteShort(0,
_stateObj
);
213
_stateObj
.Parser.WriteInt(TdsEnums.SQL_PLP_CHUNK_TERMINATOR,
_stateObj
);
234
_encoder =
_stateObj
.Parser._defaultEncoding.GetEncoder();
248
_stateObj
.Parser.WriteUnsignedLong(TdsEnums.SQL_PLP_UNKNOWNLEN,
_stateObj
);
253
_stateObj
.Parser.WriteInt(length*ADP.CharSize,
_stateObj
);
254
_stateObj
.Parser.WriteCharArray(buffer, length, bufferOffset,
_stateObj
);
263
_stateObj
.Parser.WriteSqlVariantValue(new String(buffer, bufferOffset, length), length, 0,
_stateObj
);
268
_stateObj
.Parser.WriteShort(length*ADP.CharSize,
_stateObj
);
269
_stateObj
.Parser.WriteCharArray(buffer, length, bufferOffset,
_stateObj
);
288
_stateObj
.Parser.WriteLong(0,
_stateObj
);
295
_stateObj
.Parser.WriteShort(0,
_stateObj
);
299
_stateObj
.Parser.WriteInt(TdsEnums.SQL_PLP_CHUNK_TERMINATOR,
_stateObj
);
320
bytes =
_stateObj
.Parser._defaultEncoding.GetBytes(value);
324
bytes =
_stateObj
.Parser._defaultEncoding.GetBytes(chars);
340
bytes =
_stateObj
.Parser._defaultEncoding.GetBytes(value);
343
bytes =
_stateObj
.Parser._defaultEncoding.GetBytes(value.ToCharArray(offset, length));
345
_stateObj
.Parser.WriteSqlVariantHeader(9 + bytes.Length, TdsEnums.SQLBIGVARCHAR, 7,
_stateObj
);
346
_stateObj
.Parser.WriteUnsignedInt(collation.info,
_stateObj
); // propbytes: collation.Info
347
_stateObj
.WriteByte(collation.sortId); // propbytes: collation.SortId
348
_stateObj
.Parser.WriteShort(bytes.Length,
_stateObj
); // propbyte: varlen
349
_stateObj
.WriteByteArray(bytes, bytes.Length, 0);
352
_stateObj
.Parser.WriteSqlVariantHeader(9 + length * ADP.CharSize, TdsEnums.SQLNVARCHAR, 7,
_stateObj
);
353
_stateObj
.Parser.WriteUnsignedInt(collation.info,
_stateObj
); // propbytes: collation.Info
354
_stateObj
.WriteByte(collation.sortId); // propbytes: collation.SortId
355
_stateObj
.Parser.WriteShort(length * ADP.CharSize,
_stateObj
); // propbyte: varlen
356
_stateObj
.Parser.WriteString(value, length, offset,
_stateObj
);
362
_stateObj
.Parser.WriteLong(length*ADP.CharSize,
_stateObj
); // PLP total length
363
_stateObj
.Parser.WriteInt(length*ADP.CharSize,
_stateObj
); // Chunk length
364
_stateObj
.Parser.WriteString(value, length, offset,
_stateObj
); // Data
366
_stateObj
.Parser.WriteInt(TdsEnums.SQL_PLP_CHUNK_TERMINATOR,
_stateObj
); // Terminator
370
_stateObj
.Parser.WriteShort(length*ADP.CharSize,
_stateObj
);
371
_stateObj
.Parser.WriteString(value, length, offset,
_stateObj
);
381
_stateObj
.Parser.WriteSqlVariantHeader(4, TdsEnums.SQLINT2, 0,
_stateObj
);
384
_stateObj
.WriteByte((byte)_metaData.MaxLength);
386
_stateObj
.Parser.WriteShort(value,
_stateObj
);
394
_stateObj
.Parser.WriteSqlVariantHeader(6, TdsEnums.SQLINT4, 0,
_stateObj
);
397
_stateObj
.WriteByte((byte)_metaData.MaxLength);
399
_stateObj
.Parser.WriteInt(value,
_stateObj
);
408
_stateObj
.Parser.WriteSqlVariantHeader(10, TdsEnums.SQLINT8, 0,
_stateObj
);
409
_stateObj
.Parser.WriteLong(value,
_stateObj
);
414
_stateObj
.Parser.WriteSqlVariantHeader(10, TdsEnums.SQLMONEY, 0,
_stateObj
);
415
_stateObj
.Parser.WriteInt((int)(value >> 0x20),
_stateObj
);
416
_stateObj
.Parser.WriteInt((int)value,
_stateObj
);
421
_stateObj
.WriteByte((byte)_metaData.MaxLength);
423
_stateObj
.Parser.WriteInt((int)value,
_stateObj
);
426
_stateObj
.Parser.WriteInt((int)(value >> 0x20),
_stateObj
);
427
_stateObj
.Parser.WriteInt((int)value,
_stateObj
);
430
_stateObj
.Parser.WriteLong(value,
_stateObj
);
440
_stateObj
.Parser.WriteSqlVariantHeader(6, TdsEnums.SQLFLT4, 0,
_stateObj
);
443
_stateObj
.WriteByte((byte)_metaData.MaxLength);
445
_stateObj
.Parser.WriteFloat(value,
_stateObj
);
453
_stateObj
.Parser.WriteSqlVariantHeader(10, TdsEnums.SQLFLT8, 0,
_stateObj
);
456
_stateObj
.WriteByte((byte)_metaData.MaxLength);
458
_stateObj
.Parser.WriteDouble(value,
_stateObj
);
466
_stateObj
.Parser.WriteSqlVariantHeader(21, TdsEnums.SQLNUMERICN, 2,
_stateObj
);
467
_stateObj
.WriteByte(value.Precision); // propbytes: precision
468
_stateObj
.WriteByte(value.Scale); // propbytes: scale
469
_stateObj
.Parser.WriteSqlDecimal(value,
_stateObj
);
472
_stateObj
.WriteByte(checked((byte)MetaType.MetaDecimal.FixedLength)); // SmiMetaData's length and actual wire format's length are different
473
_stateObj
.Parser.WriteSqlDecimal(SqlDecimal.ConvertToPrecScale(value, _metaData.Precision, _metaData.Scale),
_stateObj
);
484
_stateObj
.Parser.WriteSqlVariantDateTime2(value,
_stateObj
);
488
_stateObj
.Parser.WriteSqlVariantDate(value,
_stateObj
);
493
_stateObj
.Parser.WriteSqlVariantHeader(10, TdsEnums.SQLDATETIME, 0,
_stateObj
);
494
_stateObj
.Parser.WriteInt(dt.days,
_stateObj
);
495
_stateObj
.Parser.WriteInt(dt.time,
_stateObj
);
504
_stateObj
.WriteByte((byte)_metaData.MaxLength);
509
_stateObj
.Parser.WriteShort(dt.days,
_stateObj
);
510
_stateObj
.Parser.WriteShort(dt.time,
_stateObj
);
513
_stateObj
.Parser.WriteInt(dt.days,
_stateObj
);
514
_stateObj
.Parser.WriteInt(dt.time,
_stateObj
);
519
_stateObj
.WriteByteArray(BitConverter.GetBytes(time), (int)_metaData.MaxLength - 3, 0);
521
_stateObj
.WriteByteArray(BitConverter.GetBytes(days), 3, 0);
535
_stateObj
.Parser.WriteSqlVariantHeader(18, TdsEnums.SQLUNIQUEID, 0,
_stateObj
);
540
_stateObj
.WriteByte((byte)_metaData.MaxLength);
542
_stateObj
.WriteByteArray(bytes, bytes.Length, 0);
554
_stateObj
.Parser.WriteSqlVariantHeader(8, TdsEnums.SQLTIME, 1,
_stateObj
);
555
_stateObj
.WriteByte(scale); //propbytes: scale
559
_stateObj
.WriteByte(length);
562
_stateObj
.WriteByteArray(BitConverter.GetBytes(time), length, 0);
577
_stateObj
.Parser.WriteSqlVariantHeader(13, TdsEnums.SQLDATETIMEOFFSET, 1,
_stateObj
);
578
_stateObj
.WriteByte(scale); //propbytes: scale
582
_stateObj
.WriteByte(length);
589
_stateObj
.WriteByteArray(BitConverter.GetBytes(time), length - 5, 0); // time
590
_stateObj
.WriteByteArray(BitConverter.GetBytes(days), 3, 0); // date
591
_stateObj
.WriteByte((byte)(offset & 0xff)); // offset byte 1
592
_stateObj
.WriteByte((byte)((offset >> 8) & 0xff)); // offset byte 2