Backend/node_modules/mysql/lib/protocol/packets/ComQuitPacket.js

13 lines
301 B
JavaScript
Raw Normal View History

2021-12-31 09:33:23 +00:00
module.exports = ComQuitPacket;
function ComQuitPacket() {
this.command = 0x01;
}
ComQuitPacket.prototype.parse = function parse(parser) {
this.command = parser.parseUnsignedNumber(1);
};
ComQuitPacket.prototype.write = function write(writer) {
writer.writeUnsignedNumber(1, this.command);
};