Files
Campus-Plug/node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js

15 lines
375 B
JavaScript
Raw Permalink Normal View History

2025-04-20 06:59:32 -06:00
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);
};