A Twitch.tv viewer reward and games system.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
module.exports = ComChangeUserPacket; function ComChangeUserPacket(options) { options = options || {};
this.command = 0x11; this.user = options.user; this.scrambleBuff = options.scrambleBuff; this.database = options.database; this.charsetNumber = options.charsetNumber; }
ComChangeUserPacket.prototype.parse = function(parser) { this.user = parser.parseNullTerminatedString(); this.scrambleBuff = parser.parseLengthCodedBuffer(); this.database = parser.parseNullTerminatedString(); this.charsetNumber = parser.parseUnsignedNumber(1); };
ComChangeUserPacket.prototype.write = function(writer) { writer.writeUnsignedNumber(1, this.command); writer.writeNullTerminatedString(this.user); writer.writeLengthCodedBuffer(this.scrambleBuff); writer.writeNullTerminatedString(this.database); writer.writeUnsignedNumber(1, this.charsetNumber); };
|