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); 1536stateObj.WriteByte((byte)(v & 0xff)); 1537stateObj.WriteByte((byte)((v >> 8) & 0xff)); 1588stateObj.WriteByte((byte)((v >> shiftValue) & 0xff)); 1649stateObj.WriteByte((byte)((v >> shiftValue) & 0xff)); 1692stateObj.WriteByte((byte)((v >> shiftValue) & 0xff)); 3677_physicalStateObj.WriteByte(0); 3680_physicalStateObj.WriteByte(sizeof(UInt32)+sizeof(byte)); 3682_physicalStateObj.WriteByte(collation.sortId); 4426stateObj.WriteByte(0); 4429stateObj.WriteByte((byte)database.Length); 4435stateObj.WriteByte(0); 4438stateObj.WriteByte((byte)schema.Length); 4444stateObj.WriteByte(0); 4447stateObj.WriteByte((byte)type.Length); 5848stateObj.WriteByte(mt.TDSType); 5849stateObj.WriteByte(mt.PropBytes); 5874stateObj.WriteByte((byte)value); 5879stateObj.WriteByte(1); 5881stateObj.WriteByte(0); 5898stateObj.WriteByte(_defaultCollation.sortId); // propbytes: collation.SortId 5918stateObj.WriteByte(_defaultCollation.sortId); // propbytes: collation.SortId 5943stateObj.WriteByte(mt.Precision); //propbytes: precision 5944stateObj.WriteByte((byte)((Decimal.GetBits((Decimal)value)[3] & 0x00ff0000) >> 0x10)); // propbytes: scale 5950stateObj.WriteByte(mt.Scale); //propbytes: scale 5955stateObj.WriteByte(mt.Scale); //propbytes: scale 6024stateObj.WriteByte((byte)value); 6030stateObj.WriteByte(1); 6032stateObj.WriteByte(0); 6053stateObj.WriteByte(_defaultCollation.sortId); // propbytes: collation.SortId 6077stateObj.WriteByte(_defaultCollation.sortId); // propbytes: collation.SortId 6105stateObj.WriteByte(metatype.Precision); //propbytes: precision 6106stateObj.WriteByte((byte)((Decimal.GetBits((Decimal)value)[3] & 0x00ff0000) >> 0x10)); // propbytes: scale 6113stateObj.WriteByte(metatype.Scale); //propbytes: scale 6119stateObj.WriteByte(metatype.Scale); //propbytes: scale 6133stateObj.WriteByte(tdstype); 6134stateObj.WriteByte(propbytes); 6142stateObj.WriteByte(dateTime2MetaData.Scale); //scale property 6332stateObj.WriteByte((byte)(offset & 0xff)); 6333stateObj.WriteByte((byte)((offset >> 8) & 0xff)); 6436stateObj.WriteByte(1); 6438stateObj.WriteByte(0); 6520stateObj.WriteByte(0); 6522stateObj.WriteByte(1); 6532stateObj.WriteByte(checked((byte)s.Length)); 6536stateObj.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 7794stateObj.WriteByte((byte)isoLevel); 7796stateObj.WriteByte((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string). 7809stateObj.WriteByte((byte)0); // No xact name 7811stateObj.WriteByte(0); // No flags 7820stateObj.WriteByte((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string). 7823stateObj.WriteByte(0); // No flags 7832stateObj.WriteByte((byte)(transactionName.Length * 2)); // Write number of bytes (unicode string). 8188stateObj.WriteByte(rpcext.paramoptions[i]); 8312stateObj.WriteByte(mt.NullableType); 8448stateObj.WriteByte(TdsEnums.DEFAULT_NUMERIC_PRECISION); 8450stateObj.WriteByte(TdsEnums.SPHINX_DEFAULT_NUMERIC_PRECISION); 8453stateObj.WriteByte(precision); 8455stateObj.WriteByte(scale); 8458stateObj.WriteByte(param.GetActualScale()); 8467stateObj.WriteByte(1); //Schema present flag 8471stateObj.WriteByte((byte)(tempLen)); 8475stateObj.WriteByte(0); // No dbname 8480stateObj.WriteByte((byte)(tempLen)); 8484stateObj.WriteByte(0); // no xml schema name 8497stateObj.WriteByte(0); // No schema 8506stateObj.WriteByte(outCollation.sortId); 8571stateObj.WriteByte(TdsEnums.YUKON_RPCBATCHFLAG); 8575stateObj.WriteByte(TdsEnums.SHILOH_RPCBATCHFLAG); 8750stateObj.WriteByte((byte)tempLen); 8754stateObj.WriteByte(0); 8844stateObj.WriteByte(status); 8853stateObj.WriteByte(TdsEnums.SQLINTN); 8854stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8857stateObj.WriteByte(TdsEnums.SQLBIGBINARY); 8861stateObj.WriteByte(TdsEnums.SQLBITN); 8862stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8865stateObj.WriteByte(TdsEnums.SQLBIGCHAR); 8868stateObj.WriteByte(_defaultCollation.sortId); 8871stateObj.WriteByte(TdsEnums.SQLDATETIMN); 8872stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8875stateObj.WriteByte(TdsEnums.SQLNUMERICN); 8876stateObj.WriteByte(checked((byte)MetaType.MetaDecimal.FixedLength)); // SmiMetaData's length and actual wire format's length are different 8877stateObj.WriteByte(0 == metaData.Precision ? (byte)1 : metaData.Precision); 8878stateObj.WriteByte(metaData.Scale); 8881stateObj.WriteByte(TdsEnums.SQLFLTN); 8882stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8885stateObj.WriteByte(TdsEnums.SQLBIGVARBINARY); 8889stateObj.WriteByte(TdsEnums.SQLINTN); 8890stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8893stateObj.WriteByte(TdsEnums.SQLMONEYN); 8894stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8897stateObj.WriteByte(TdsEnums.SQLNCHAR); 8900stateObj.WriteByte(_defaultCollation.sortId); 8903stateObj.WriteByte(TdsEnums.SQLNVARCHAR); 8906stateObj.WriteByte(_defaultCollation.sortId); 8909stateObj.WriteByte(TdsEnums.SQLNVARCHAR); 8917stateObj.WriteByte(_defaultCollation.sortId); 8920stateObj.WriteByte(TdsEnums.SQLFLTN); 8921stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8924stateObj.WriteByte(TdsEnums.SQLUNIQUEID); 8925stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8928stateObj.WriteByte(TdsEnums.SQLDATETIMN); 8929stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8932stateObj.WriteByte(TdsEnums.SQLINTN); 8933stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8936stateObj.WriteByte(TdsEnums.SQLMONEYN); 8937stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8940stateObj.WriteByte(TdsEnums.SQLBIGVARCHAR); 8943stateObj.WriteByte(_defaultCollation.sortId); 8946stateObj.WriteByte(TdsEnums.SQLBIGBINARY); 8950stateObj.WriteByte(TdsEnums.SQLINTN); 8951stateObj.WriteByte(checked((byte)metaData.MaxLength)); 8954stateObj.WriteByte(TdsEnums.SQLBIGVARBINARY); 8958stateObj.WriteByte(TdsEnums.SQLBIGVARCHAR); 8961stateObj.WriteByte(_defaultCollation.sortId); 8964stateObj.WriteByte(TdsEnums.SQLVARIANT); 8968stateObj.WriteByte(TdsEnums.SQLXMLTYPE); 8972stateObj.WriteByte(0); // schema not present 8975stateObj.WriteByte(1); // schema present 8982stateObj.WriteByte(TdsEnums.SQLUDT); 8996stateObj.WriteByte(TdsEnums.SQLDATE); 8999stateObj.WriteByte(TdsEnums.SQLTIME); 9000stateObj.WriteByte(metaData.Scale); 9003stateObj.WriteByte(TdsEnums.SQLDATETIME2); 9004stateObj.WriteByte(metaData.Scale); 9007stateObj.WriteByte(TdsEnums.SQLDATETIMEOFFSET); 9008stateObj.WriteByte(metaData.Scale); 9020stateObj.WriteByte((byte)TdsEnums.SQLTABLE); 9047stateObj.WriteByte(TdsEnums.TVP_END_TOKEN); 9121stateObj.WriteByte(TdsEnums.TVP_ORDER_UNIQUE_TOKEN); 9125stateObj.WriteByte(column.Flags); 9136stateObj.WriteByte(TdsEnums.SQLDONE); 9184stateObj.WriteByte(0x00); 9226stateObj.WriteByte(mdPriv.tdsType); 9231stateObj.WriteByte(mdPriv.precision); 9232stateObj.WriteByte(mdPriv.scale); 9240stateObj.WriteByte(mdPriv.scale); 9246stateObj.WriteByte(mdPriv.collation.sortId); 9270stateObj.WriteByte(md.cipherMD.CipherAlgorithmId); 9275stateObj.WriteByte((byte)md.cipherMD.CipherAlgorithmName.Length); 9280stateObj.WriteByte(md.cipherMD.EncryptionType); 9283stateObj.WriteByte(md.cipherMD.NormalizationRuleVersion); 9291stateObj.WriteByte(TdsEnums.SQLCOLMETADATA); 9331stateObj.WriteByte(md.tdsType); 9333stateObj.WriteByte(md.precision); 9334stateObj.WriteByte(md.scale); 9341stateObj.WriteByte(TdsEnums.SQLBIGVARBINARY); 9345stateObj.WriteByte(md.tdsType); 9350stateObj.WriteByte(md.tdsType); 9351stateObj.WriteByte(md.scale); 9354stateObj.WriteByte(md.tdsType); 9358stateObj.WriteByte(md.collation.sortId); 9370stateObj.WriteByte((byte)md.column.Length); 9526stateObj.WriteByte(TdsEnums.FIXEDNULL); 9878stateObj.WriteByte((byte)length); 9997stateObj.WriteByte(1); 9999stateObj.WriteByte(0); 10006stateObj.WriteByte(((SqlByte)value).Value); 10561stateObj.WriteByte(1); 10563stateObj.WriteByte(0); 10570stateObj.WriteByte((byte)value); 11089stateObj.WriteByte(TdsEnums.FIXEDNULL); 11092stateObj.WriteByte((byte)size); 11105stateObj.WriteByte(TdsEnums.FIXEDNULL); 11109stateObj.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