• File: ResultSetHeaderPacket.js
  • Full Path: /var/www/nodejs/Notifications_Imali_API/node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js
  • Date Modified: 10/26/1985 3:15 PM
  • File size: 381 bytes
  • MIME-type: text/plain
  • Charset: utf-8
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);
};