MCPcopy
hub / github.com/mongodb/node-mongodb-native / clear

Method clear

src/sdam/monitor.ts:767–770  ·  view source on GitHub ↗

* Clear the buffer * NOTE: this does not overwrite the data held in the internal array, just the pointers into * this array

()

Source from the content-addressed store, hash-verified

765 * this array
766 */
767 clear() {
768 this.length = 0;
769 this.writeIndex = 0;
770 }
771}

Callers 6

closeMethod · 0.45
selectServerMethod · 0.45
updateServersFunction · 0.45
clearRttSamplesMethod · 0.45
handleErrorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected