213 references to WriteByte
System.Data (213)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2172
_stateObj.
WriteByte
(TdsEnums.SQLROW);
fx\src\data\System\Data\SqlClient\TdsParser.cs (186)
743
_physicalStateObj.
WriteByte
((byte)option);
746
_physicalStateObj.
WriteByte
((byte)((offset & 0xff00) >> 8)); // send upper order byte
747
_physicalStateObj.
WriteByte
((byte)(offset & 0x00ff)); // send lower order byte
858
_physicalStateObj.
WriteByte
((byte)((optionDataSize & 0xff00) >> 8));
859
_physicalStateObj.
WriteByte
((byte)(optionDataSize & 0x00ff));
863
_physicalStateObj.
WriteByte
((byte)PreLoginOptions.LASTOPT);
1536
stateObj.
WriteByte
((byte)(v & 0xff));
1537
stateObj.
WriteByte
((byte)((v >> 8) & 0xff));
1588
stateObj.
WriteByte
((byte)((v >> shiftValue) & 0xff));
1649
stateObj.
WriteByte
((byte)((v >> shiftValue) & 0xff));
1692
stateObj.
WriteByte
((byte)((v >> shiftValue) & 0xff));
3677
_physicalStateObj.
WriteByte
(0);
3680
_physicalStateObj.
WriteByte
(sizeof(UInt32)+sizeof(byte));
3682
_physicalStateObj.
WriteByte
(collation.sortId);
4426
stateObj.
WriteByte
(0);
4429
stateObj.
WriteByte
((byte)database.Length);
4435
stateObj.
WriteByte
(0);
4438
stateObj.
WriteByte
((byte)schema.Length);
4444
stateObj.
WriteByte
(0);
4447
stateObj.
WriteByte
((byte)type.Length);
5848
stateObj.
WriteByte
(mt.TDSType);
5849
stateObj.
WriteByte
(mt.PropBytes);
5874
stateObj.
WriteByte
((byte)value);
5879
stateObj.
WriteByte
(1);
5881
stateObj.
WriteByte
(0);
5898
stateObj.
WriteByte
(_defaultCollation.sortId); // propbytes: collation.SortId
5918
stateObj.
WriteByte
(_defaultCollation.sortId); // propbytes: collation.SortId
5943
stateObj.
WriteByte
(mt.Precision); //propbytes: precision
5944
stateObj.
WriteByte
((byte)((Decimal.GetBits((Decimal)value)[3] & 0x00ff0000) >> 0x10)); // propbytes: scale
5950
stateObj.
WriteByte
(mt.Scale); //propbytes: scale
5955
stateObj.
WriteByte
(mt.Scale); //propbytes: scale
6024
stateObj.
WriteByte
((byte)value);
6030
stateObj.
WriteByte
(1);
6032
stateObj.
WriteByte
(0);
6053
stateObj.
WriteByte
(_defaultCollation.sortId); // propbytes: collation.SortId
6077
stateObj.
WriteByte
(_defaultCollation.sortId); // propbytes: collation.SortId
6105
stateObj.
WriteByte
(metatype.Precision); //propbytes: precision
6106
stateObj.
WriteByte
((byte)((Decimal.GetBits((Decimal)value)[3] & 0x00ff0000) >> 0x10)); // propbytes: scale
6113
stateObj.
WriteByte
(metatype.Scale); //propbytes: scale
6119
stateObj.
WriteByte
(metatype.Scale); //propbytes: scale
6133
stateObj.
WriteByte
(tdstype);
6134
stateObj.
WriteByte
(propbytes);
6142
stateObj.
WriteByte
(dateTime2MetaData.Scale); //scale property
6332
stateObj.
WriteByte
((byte)(offset & 0xff));
6333
stateObj.
WriteByte
((byte)((offset >> 8) & 0xff));
6436
stateObj.
WriteByte
(1);
6438
stateObj.
WriteByte
(0);
6520
stateObj.
WriteByte
(0);
6522
stateObj.
WriteByte
(1);
6532
stateObj.
WriteByte
(checked((byte)s.Length));
6536
stateObj.
WriteByte
((byte)0);
6891
_physicalStateObj.
WriteByte
(TdsEnums.FEATUREEXT_SRECOVERY);
6941
_physicalStateObj.
WriteByte
((byte)i);
6943
_physicalStateObj.
WriteByte
((byte)reconnectData._initialState[i].Length);
6946
_physicalStateObj.
WriteByte
(0xFF);
6958
_physicalStateObj.
WriteByte
((byte)i);
6960
_physicalStateObj.
WriteByte
((byte)reconnectData._delta[i]._dataLength);
6963
_physicalStateObj.
WriteByte
(0xFF);
7001
_physicalStateObj.
WriteByte
(TdsEnums.FEATUREEXT_FEDAUTH);
7025
_physicalStateObj.
WriteByte
(options);
7047
_physicalStateObj.
WriteByte
(workflow);
7066
_physicalStateObj.
WriteByte
(TdsEnums.FEATUREEXT_TCE);
7068
_physicalStateObj.
WriteByte
(TdsEnums.MAX_SUPPORTED_TCE_VERSION);
7079
_physicalStateObj.
WriteByte
(TdsEnums.FEATUREEXT_GLOBALTRANSACTIONS);
7092
_physicalStateObj.
WriteByte
(TdsEnums.FEATUREEXT_AZURESQLSUPPORT);
7476
_physicalStateObj.
WriteByte
(0xFF); // terminator
7794
stateObj.
WriteByte
((byte)isoLevel);
7796
stateObj.
WriteByte
((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string).
7809
stateObj.
WriteByte
((byte)0); // No xact name
7811
stateObj.
WriteByte
(0); // No flags
7820
stateObj.
WriteByte
((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string).
7823
stateObj.
WriteByte
(0); // No flags
7832
stateObj.
WriteByte
((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string).
8188
stateObj.
WriteByte
(rpcext.paramoptions[i]);
8312
stateObj.
WriteByte
(mt.NullableType);
8448
stateObj.
WriteByte
(TdsEnums.DEFAULT_NUMERIC_PRECISION);
8450
stateObj.
WriteByte
(TdsEnums.SPHINX_DEFAULT_NUMERIC_PRECISION);
8453
stateObj.
WriteByte
(precision);
8455
stateObj.
WriteByte
(scale);
8458
stateObj.
WriteByte
(param.GetActualScale());
8467
stateObj.
WriteByte
(1); //Schema present flag
8471
stateObj.
WriteByte
((byte)(tempLen));
8475
stateObj.
WriteByte
(0); // No dbname
8480
stateObj.
WriteByte
((byte)(tempLen));
8484
stateObj.
WriteByte
(0); // no xml schema name
8497
stateObj.
WriteByte
(0); // No schema
8506
stateObj.
WriteByte
(outCollation.sortId);
8571
stateObj.
WriteByte
(TdsEnums.YUKON_RPCBATCHFLAG);
8575
stateObj.
WriteByte
(TdsEnums.SHILOH_RPCBATCHFLAG);
8750
stateObj.
WriteByte
((byte)tempLen);
8754
stateObj.
WriteByte
(0);
8844
stateObj.
WriteByte
(status);
8853
stateObj.
WriteByte
(TdsEnums.SQLINTN);
8854
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8857
stateObj.
WriteByte
(TdsEnums.SQLBIGBINARY);
8861
stateObj.
WriteByte
(TdsEnums.SQLBITN);
8862
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8865
stateObj.
WriteByte
(TdsEnums.SQLBIGCHAR);
8868
stateObj.
WriteByte
(_defaultCollation.sortId);
8871
stateObj.
WriteByte
(TdsEnums.SQLDATETIMN);
8872
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8875
stateObj.
WriteByte
(TdsEnums.SQLNUMERICN);
8876
stateObj.
WriteByte
(checked((byte)MetaType.MetaDecimal.FixedLength)); // SmiMetaData's length and actual wire format's length are different
8877
stateObj.
WriteByte
(0 == metaData.Precision ? (byte)1 : metaData.Precision);
8878
stateObj.
WriteByte
(metaData.Scale);
8881
stateObj.
WriteByte
(TdsEnums.SQLFLTN);
8882
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8885
stateObj.
WriteByte
(TdsEnums.SQLBIGVARBINARY);
8889
stateObj.
WriteByte
(TdsEnums.SQLINTN);
8890
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8893
stateObj.
WriteByte
(TdsEnums.SQLMONEYN);
8894
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8897
stateObj.
WriteByte
(TdsEnums.SQLNCHAR);
8900
stateObj.
WriteByte
(_defaultCollation.sortId);
8903
stateObj.
WriteByte
(TdsEnums.SQLNVARCHAR);
8906
stateObj.
WriteByte
(_defaultCollation.sortId);
8909
stateObj.
WriteByte
(TdsEnums.SQLNVARCHAR);
8917
stateObj.
WriteByte
(_defaultCollation.sortId);
8920
stateObj.
WriteByte
(TdsEnums.SQLFLTN);
8921
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8924
stateObj.
WriteByte
(TdsEnums.SQLUNIQUEID);
8925
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8928
stateObj.
WriteByte
(TdsEnums.SQLDATETIMN);
8929
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8932
stateObj.
WriteByte
(TdsEnums.SQLINTN);
8933
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8936
stateObj.
WriteByte
(TdsEnums.SQLMONEYN);
8937
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8940
stateObj.
WriteByte
(TdsEnums.SQLBIGVARCHAR);
8943
stateObj.
WriteByte
(_defaultCollation.sortId);
8946
stateObj.
WriteByte
(TdsEnums.SQLBIGBINARY);
8950
stateObj.
WriteByte
(TdsEnums.SQLINTN);
8951
stateObj.
WriteByte
(checked((byte)metaData.MaxLength));
8954
stateObj.
WriteByte
(TdsEnums.SQLBIGVARBINARY);
8958
stateObj.
WriteByte
(TdsEnums.SQLBIGVARCHAR);
8961
stateObj.
WriteByte
(_defaultCollation.sortId);
8964
stateObj.
WriteByte
(TdsEnums.SQLVARIANT);
8968
stateObj.
WriteByte
(TdsEnums.SQLXMLTYPE);
8972
stateObj.
WriteByte
(0); // schema not present
8975
stateObj.
WriteByte
(1); // schema present
8982
stateObj.
WriteByte
(TdsEnums.SQLUDT);
8996
stateObj.
WriteByte
(TdsEnums.SQLDATE);
8999
stateObj.
WriteByte
(TdsEnums.SQLTIME);
9000
stateObj.
WriteByte
(metaData.Scale);
9003
stateObj.
WriteByte
(TdsEnums.SQLDATETIME2);
9004
stateObj.
WriteByte
(metaData.Scale);
9007
stateObj.
WriteByte
(TdsEnums.SQLDATETIMEOFFSET);
9008
stateObj.
WriteByte
(metaData.Scale);
9020
stateObj.
WriteByte
((byte)TdsEnums.SQLTABLE);
9047
stateObj.
WriteByte
(TdsEnums.TVP_END_TOKEN);
9121
stateObj.
WriteByte
(TdsEnums.TVP_ORDER_UNIQUE_TOKEN);
9125
stateObj.
WriteByte
(column.Flags);
9136
stateObj.
WriteByte
(TdsEnums.SQLDONE);
9184
stateObj.
WriteByte
(0x00);
9226
stateObj.
WriteByte
(mdPriv.tdsType);
9231
stateObj.
WriteByte
(mdPriv.precision);
9232
stateObj.
WriteByte
(mdPriv.scale);
9240
stateObj.
WriteByte
(mdPriv.scale);
9246
stateObj.
WriteByte
(mdPriv.collation.sortId);
9270
stateObj.
WriteByte
(md.cipherMD.CipherAlgorithmId);
9275
stateObj.
WriteByte
((byte)md.cipherMD.CipherAlgorithmName.Length);
9280
stateObj.
WriteByte
(md.cipherMD.EncryptionType);
9283
stateObj.
WriteByte
(md.cipherMD.NormalizationRuleVersion);
9291
stateObj.
WriteByte
(TdsEnums.SQLCOLMETADATA);
9331
stateObj.
WriteByte
(md.tdsType);
9333
stateObj.
WriteByte
(md.precision);
9334
stateObj.
WriteByte
(md.scale);
9341
stateObj.
WriteByte
(TdsEnums.SQLBIGVARBINARY);
9345
stateObj.
WriteByte
(md.tdsType);
9350
stateObj.
WriteByte
(md.tdsType);
9351
stateObj.
WriteByte
(md.scale);
9354
stateObj.
WriteByte
(md.tdsType);
9358
stateObj.
WriteByte
(md.collation.sortId);
9370
stateObj.
WriteByte
((byte)md.column.Length);
9526
stateObj.
WriteByte
(TdsEnums.FIXEDNULL);
9878
stateObj.
WriteByte
((byte)length);
9997
stateObj.
WriteByte
(1);
9999
stateObj.
WriteByte
(0);
10006
stateObj.
WriteByte
(((SqlByte)value).Value);
10561
stateObj.
WriteByte
(1);
10563
stateObj.
WriteByte
(0);
10570
stateObj.
WriteByte
((byte)value);
11089
stateObj.
WriteByte
(TdsEnums.FIXEDNULL);
11092
stateObj.
WriteByte
((byte)size);
11105
stateObj.
WriteByte
(TdsEnums.FIXEDNULL);
11109
stateObj.
WriteByte
((byte)(type.FixedLength & 0xff)); // 1 byte for everything else
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (2)
205
_stateObj.
WriteByte
(TdsEnums.TVP_ROW_TOKEN);
218
_stateObj.
WriteByte
(TdsEnums.TVP_END_TOKEN);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (24)
84
_stateObj.
WriteByte
(TdsEnums.FIXEDNULL);
123
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
126
_stateObj.
WriteByte
(1);
129
_stateObj.
WriteByte
(0);
141
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
143
_stateObj.
WriteByte
(value);
347
_stateObj.
WriteByte
(collation.sortId); // propbytes: collation.SortId
354
_stateObj.
WriteByte
(collation.sortId); // propbytes: collation.SortId
384
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
397
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
421
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
443
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
456
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
467
_stateObj.
WriteByte
(value.Precision); // propbytes: precision
468
_stateObj.
WriteByte
(value.Scale); // propbytes: scale
472
_stateObj.
WriteByte
(checked((byte)MetaType.MetaDecimal.FixedLength)); // SmiMetaData's length and actual wire format's length are different
504
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
540
_stateObj.
WriteByte
((byte)_metaData.MaxLength);
555
_stateObj.
WriteByte
(scale); //propbytes: scale
559
_stateObj.
WriteByte
(length);
578
_stateObj.
WriteByte
(scale); //propbytes: scale
582
_stateObj.
WriteByte
(length);
591
_stateObj.
WriteByte
((byte)(offset & 0xff)); // offset byte 1
592
_stateObj.
WriteByte
((byte)((offset >> 8) & 0xff)); // offset byte 2