MCPcopy
hub / github.com/node-formidable/formidable / dataCallback

Method dataCallback

src/parsers/Multipart.js:124–137  ·  view source on GitHub ↗
(name, shouldClear)

Source from the content-addressed store, hash-verified

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];

Callers

nothing calls this directly

Calls 1

_handleCallbackMethod · 0.95

Tested by

no test coverage detected