97 references to WriteShort
System.Data (97)
fx\src\data\System\Data\SqlClient\TdsParser.cs (86)
1548WriteShort((short)us, stateObj); 5870WriteShort((Int16)value, stateObj); 5889WriteShort(length, stateObj); // propbytes: varlen 5899WriteShort(length, stateObj); // propbyte: varlen 5919WriteShort(length, stateObj); // propbyte: varlen 6019WriteShort((Int16)value, stateObj); 6042WriteShort(length, stateObj); // propbytes: varlen 6054WriteShort(length, stateObj); 6078WriteShort(length, stateObj); // propbyte: varlen 6542WriteShort(checked((short)s.Length), stateObj); 6546WriteShort(0, stateObj); 7331WriteShort(offset, _physicalStateObj); // host name offset 7332WriteShort(rec.hostName.Length, _physicalStateObj); 7338WriteShort(offset, _physicalStateObj); // userName offset 7339WriteShort(userName.Length, _physicalStateObj); 7343WriteShort(offset, _physicalStateObj); // password offset 7344WriteShort(encryptedPasswordLengthInBytes / 2, _physicalStateObj); 7349WriteShort(0, _physicalStateObj); // userName offset 7350WriteShort(0, _physicalStateObj); 7351WriteShort(0, _physicalStateObj); // password offset 7352WriteShort(0, _physicalStateObj); 7355WriteShort(offset, _physicalStateObj); // app name offset 7356WriteShort(rec.applicationName.Length, _physicalStateObj); 7359WriteShort(offset, _physicalStateObj); // server name offset 7360WriteShort(rec.serverName.Length, _physicalStateObj); 7363WriteShort(offset, _physicalStateObj); 7365WriteShort(4, _physicalStateObj); // length of ibFeatgureExtLong (which is a DWORD) 7369WriteShort(0, _physicalStateObj); // unused (was remote password ?) 7372WriteShort(offset, _physicalStateObj); // client interface name offset 7373WriteShort(clientInterfaceName.Length, _physicalStateObj); 7376WriteShort(offset, _physicalStateObj); // language name offset 7377WriteShort(rec.language.Length, _physicalStateObj); 7380WriteShort(offset, _physicalStateObj); // database name offset 7381WriteShort(rec.database.Length, _physicalStateObj); 7391WriteShort(offset, _physicalStateObj); // ibSSPI offset 7393WriteShort((int)outSSPILength, _physicalStateObj); 7397WriteShort(0, _physicalStateObj); 7400WriteShort(offset, _physicalStateObj); // DB filename offset 7401WriteShort(rec.attachDBFilename.Length, _physicalStateObj); 7404WriteShort(offset, _physicalStateObj); // reset password offset 7405WriteShort(encryptedChangePasswordLengthInBytes / 2, _physicalStateObj); 7752WriteShort((short)request, stateObj); // write TransactionManager Request type 7758WriteShort(0, stateObj); 7764WriteShort(buffer.Length, stateObj); 7768WriteShort(0, stateObj); 8108WriteShort(0xffff, stateObj); 8109WriteShort((short)(rpcext.ProcID), stateObj); 8114WriteShort(tempLen, stateObj); 8119WriteShort((short)rpcext.options, stateObj); 8347WriteShort(TdsEnums.SQL_USHORTVARMAXLEN, stateObj); 8428WriteShort(TdsEnums.SQL_USHORTVARMAXLEN, stateObj); 8488WriteShort((short)(tempLen), stateObj); 8492WriteShort(0, stateObj); // No xml schema collection name 8639WriteShort((short) enclavePackage.Length, stateObj); 8644WriteShort((short) 0, stateObj); 8947WriteShort(checked((int)metaData.MaxLength), stateObj); 9122WriteShort(columnList.Count, stateObj); 9124WriteShort(column.ColumnOrdinal, stateObj); 9137WriteShort(0, stateObj); 9138WriteShort(0, stateObj); 9203WriteShort(0x00, stateObj); 9210WriteShort(count, stateObj); 9264WriteShort (md.cipherMD.CekTableOrdinal, stateObj); 9292WriteShort(count, stateObj); 9306WriteShort(0x0000, stateObj); 9322WriteShort(flags, stateObj);// write the flags 9364WriteShort(md.tableName.Length, stateObj); 9523WriteShort(TdsEnums.VARNULL, stateObj); 9623WriteShort(ccb, stateObj); 9670WriteShort(TdsEnums.HEADERTYPE_MARS, stateObj); 9749WriteShort(TdsEnums.HEADERTYPE_QNOTIFICATION, stateObj); // Query notifications Type 9751WriteShort(callbackId.Length * 2, stateObj); // Length in bytes 9754WriteShort(service.Length * 2, stateObj); // Length in bytes 9768WriteShort(TdsEnums.HEADERTYPE_TRACE, stateObj); // Trace Header Type 9882WriteShort(length, stateObj); 9892WriteShort(TdsEnums.SQL_USHORTVARMAXLEN, stateObj); 10009WriteShort(((SqlInt16)value).Value, stateObj); 10045WriteShort(TdsEnums.XMLUNICODEBOM , stateObj); 10076WriteShort(dt.DayTicks, stateObj); 10077WriteShort(dt.TimeTicks / SqlDateTime.SQLTicksPerMinute, stateObj); 10572WriteShort((Int16)value, stateObj); 10631WriteShort(TdsEnums.XMLUNICODEBOM, stateObj); 10661WriteShort(dt.days, stateObj); 10662WriteShort(dt.time, stateObj); 11097WriteShort(TdsEnums.VARNULL, stateObj); 11100WriteShort(size, stateObj);
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (11)
96_stateObj.Parser.WriteShort(TdsEnums.VARNULL, _stateObj); 185_stateObj.Parser.WriteShort(length, _stateObj); 209_stateObj.Parser.WriteShort(0, _stateObj); 268_stateObj.Parser.WriteShort(length*ADP.CharSize, _stateObj); 295_stateObj.Parser.WriteShort(0, _stateObj); 348_stateObj.Parser.WriteShort(bytes.Length, _stateObj); // propbyte: varlen 355_stateObj.Parser.WriteShort(length * ADP.CharSize, _stateObj); // propbyte: varlen 370_stateObj.Parser.WriteShort(length*ADP.CharSize, _stateObj); 386_stateObj.Parser.WriteShort(value, _stateObj); 509_stateObj.Parser.WriteShort(dt.days, _stateObj); 510_stateObj.Parser.WriteShort(dt.time, _stateObj);