DziennikOcen/public/node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js
2022-01-31 22:23:46 +01:00

15 lines
379 B
JavaScript

module.exports = UseOldPasswordPacket;
function UseOldPasswordPacket(options) {
options = options || {};
this.firstByte = options.firstByte || 0xfe;
}
UseOldPasswordPacket.prototype.parse = function(parser) {
this.firstByte = parser.parseUnsignedNumber(1);
};
UseOldPasswordPacket.prototype.write = function(writer) {
writer.writeUnsignedNumber(1, this.firstByte);
};