16 lines
390 B
JavaScript
16 lines
390 B
JavaScript
module.exports = OldPasswordPacket;
|
|
function OldPasswordPacket(options) {
|
|
options = options || {};
|
|
|
|
this.scrambleBuff = options.scrambleBuff;
|
|
}
|
|
|
|
OldPasswordPacket.prototype.parse = function(parser) {
|
|
this.scrambleBuff = parser.parseNullTerminatedBuffer();
|
|
};
|
|
|
|
OldPasswordPacket.prototype.write = function(writer) {
|
|
writer.writeBuffer(this.scrambleBuff);
|
|
writer.writeFiller(1);
|
|
};
|