MCPcopy Index your code
hub / github.com/nodejs/node / resetBuffer

Function resetBuffer

lib/internal/streams/writable.js:361–366  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

359}
360
361function resetBuffer(state) {
362 state[kBufferedValue] = null;
363 state.bufferedIndex = 0;
364 state[kState] |= kAllBuffers | kAllNoop;
365 state[kState] &= ~kBuffered;
366}
367
368WritableState.prototype.getBuffer = function getBuffer() {
369 return (this[kState] & kBuffered) === 0 ? [] : ArrayPrototypeSlice(this.buffered, this.bufferedIndex);

Callers 3

WritableStateFunction · 0.70
errorBufferFunction · 0.70
clearBufferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected