ComQuitPacket.js 304 B

12345678910111213
  1. module.exports = ComQuitPacket;
  2. function ComQuitPacket(sql) {
  3. this.command = 0x01;
  4. }
  5. ComQuitPacket.prototype.parse = function parse(parser) {
  6. this.command = parser.parseUnsignedNumber(1);
  7. };
  8. ComQuitPacket.prototype.write = function write(writer) {
  9. writer.writeUnsignedNumber(1, this.command);
  10. };