This commit is contained in:
Lukian LEIZOUR 2023-03-02 23:53:37 +01:00
parent 851d51a1cf
commit 9965a9ba6d
129 changed files with 26774 additions and 24 deletions

25
node_modules/mysql/lib/protocol/BufferList.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
module.exports = BufferList;
function BufferList() {
this.bufs = [];
this.size = 0;
}
BufferList.prototype.shift = function shift() {
var buf = this.bufs.shift();
if (buf) {
this.size -= buf.length;
}
return buf;
};
BufferList.prototype.push = function push(buf) {
if (!buf || !buf.length) {
return;
}
this.bufs.push(buf);
this.size += buf.length;
};