AuthSwitchResponsePacket.js 375 B

123456789101112131415
  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. };