UNPKG

mysql

Version:

A node.js driver for mysql. It is written in JavaScript, does not require compiling, and is 100% MIT licensed.

16 lines (12 loc) 390 B
module.exports = OldPasswordPacket; function OldPasswordPacket(options) { options = options || {}; this.scrambleBuff = options.scrambleBuff; } OldPasswordPacket.prototype.parse = function(parser) { this.scrambleBuff = parser.parseNullTerminatedBuffer(); }; OldPasswordPacket.prototype.write = function(writer) { writer.writeBuffer(this.scrambleBuff); writer.writeFiller(1); };