(name, shouldClear)
| 122 | }; |
| 123 | |
| 124 | const dataCallback = (name, shouldClear) => { |
| 125 | const markSymbol = `${name}Mark`; |
| 126 | if (!(markSymbol in this)) { |
| 127 | return; |
| 128 | } |
| 129 | |
| 130 | if (!shouldClear) { |
| 131 | this._handleCallback(name, buffer, this[markSymbol], buffer.length); |
| 132 | setMark(name, 0); |
| 133 | } else { |
| 134 | this._handleCallback(name, buffer, this[markSymbol], i); |
| 135 | clearMarkSymbol(name); |
| 136 | } |
| 137 | }; |
| 138 | |
| 139 | for (i = 0; i < this.bufferLength; i++) { |
| 140 | c = buffer[i]; |
nothing calls this directly
no test coverage detected