DziennikOcen/public/node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js
2022-01-31 22:23:46 +01:00

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);
};