DziennikOcen/node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js

15 lines
379 B
JavaScript
Raw Normal View History

2022-01-11 20:18:26 +01:00
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);
};