DziennikOcen/node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js

15 lines
367 B
JavaScript
Raw Normal View History

2022-01-11 20:18:26 +01:00
module.exports = OldPasswordPacket;
function OldPasswordPacket(options) {
options = options || {};
this.scrambleBuff = options.scrambleBuff;
}
OldPasswordPacket.prototype.parse = function(parser) {
this.scrambleBuff = parser.parsePacketTerminatedBuffer();
};
OldPasswordPacket.prototype.write = function(writer) {
writer.writeBuffer(this.scrambleBuff);
};