434e0422fb
15 lines
381 B
JavaScript
15 lines
381 B
JavaScript
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);
|
|||
};
|