• File: UseOldPasswordPacket.js
  • Full Path: /var/www/nodejs/Notifications_Imali_API/node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js
  • Date Modified: 10/26/1985 3:15 PM
  • File size: 379 bytes
  • MIME-type: text/plain
  • Charset: utf-8
module.exports = UseOldPasswordPacket;
function UseOldPasswordPacket(options) {
  options = options || {};

  this.firstByte = options.firstByte || 0xfe;
}

UseOldPasswordPacket.prototype.parse = function(parser) {
  this.firstByte = parser.parseUnsignedNumber(1);
};

UseOldPasswordPacket.prototype.write = function(writer) {
  writer.writeUnsignedNumber(1, this.firstByte);
};