DziennikOcen/node_modules/mysql/lib/protocol/packets/ComQuitPacket.js
User Kill3rs4 84150f8404 Initial D
2022-01-11 20:18:26 +01:00

13 lines
301 B
JavaScript

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);
};