This commit is contained in:
Lukian LEIZOUR 2023-03-02 23:53:37 +01:00
parent 851d51a1cf
commit 9965a9ba6d
129 changed files with 26774 additions and 24 deletions

View file

@ -0,0 +1,14 @@
module.exports = ResultSetHeaderPacket;
function ResultSetHeaderPacket(options) {
options = options || {};
this.fieldCount = options.fieldCount;
}
ResultSetHeaderPacket.prototype.parse = function(parser) {
this.fieldCount = parser.parseLengthCodedNumber();
};
ResultSetHeaderPacket.prototype.write = function(writer) {
writer.writeLengthCodedNumber(this.fieldCount);
};