AuthSwitchResponsePacket.js 375 B

1234567891011121314
  1. module.exports = AuthSwitchResponsePacket;
  2. function AuthSwitchResponsePacket(options) {
  3. options = options || {};
  4. this.data = options.data;
  5. }
  6. AuthSwitchResponsePacket.prototype.parse = function parse(parser) {
  7. this.data = parser.parsePacketTerminatedBuffer();
  8. };
  9. AuthSwitchResponsePacket.prototype.write = function write(writer) {
  10. writer.writeBuffer(this.data);
  11. };