j7/node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js
aozhiwei 33f9c8d06a 1
2022-04-15 00:46:09 +08:00

15 lines
375 B
JavaScript

module.exports = AuthSwitchResponsePacket;
function AuthSwitchResponsePacket(options) {
options = options || {};
this.data = options.data;
}
AuthSwitchResponsePacket.prototype.parse = function parse(parser) {
this.data = parser.parsePacketTerminatedBuffer();
};
AuthSwitchResponsePacket.prototype.write = function write(writer) {
writer.writeBuffer(this.data);
};