This commit is contained in:
bcomnes
2023-06-27 21:45:10 +00:00
parent dabda0324f
commit 88fe06ede7
4 changed files with 20 additions and 4 deletions

10
dist/index.js vendored
View File

@@ -6357,6 +6357,11 @@ var require_fixed_size = __commonJS({
this.btm = 0;
this.next = null;
}
clear() {
this.top = this.btm = 0;
this.next = null;
this.buffer.fill(void 0);
}
push(data) {
if (this.buffer[this.top] !== void 0)
return false;
@@ -6393,6 +6398,11 @@ var require_fast_fifo = __commonJS({
this.tail = this.head;
this.length = 0;
}
clear() {
this.head = this.tail;
this.head.clear();
this.length = 0;
}
push(val) {
this.length++;
if (!this.head.push(val)) {

4
dist/index.js.map vendored

File diff suppressed because one or more lines are too long