OldPasswordPacket.js 367 B

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