Files
SQL-INYECTOR/node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js
2026-01-19 12:12:38 -03: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);
};