File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -987,7 +987,7 @@ class BaseBuffer {
987
987
writeUInt64BE ( n ) {
988
988
const buf = this . reserveBytes ( 8 ) ;
989
989
buf . writeUInt32BE ( 0 ) ;
990
- buf . writeUInt32BE ( n ) ;
990
+ buf . writeUInt32BE ( n , 4 ) ;
991
991
}
992
992
993
993
//---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -38,7 +38,16 @@ const Message = require("./base.js");
38
38
*/
39
39
class DataTypeMessage extends Message {
40
40
41
- decode ( ) { }
41
+ processMessage ( buf ) {
42
+ while ( true ) { // eslint-disable-line
43
+ const dataType = buf . readUInt16BE ( ) ;
44
+ if ( dataType === 0 )
45
+ break ;
46
+ const convDataType = buf . readUInt16BE ( ) ;
47
+ if ( convDataType !== 0 )
48
+ buf . skipBytes ( 4 ) ;
49
+ }
50
+ }
42
51
43
52
encode ( buf ) {
44
53
buf . writeUInt8 ( constants . TNS_MSG_TYPE_DATA_TYPES ) ;
You can’t perform that action at this time.
0 commit comments