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

Function highWaterMarkFrom

lib/internal/streams/state.js:15–18  ·  view source on GitHub ↗
(options, isDuplex, duplexKey)

Source from the content-addressed store, hash-verified

13let defaultHighWaterMarkObjectMode = 16;
14
15function highWaterMarkFrom(options, isDuplex, duplexKey) {
16 return options.highWaterMark != null ? options.highWaterMark :
17 isDuplex ? options[duplexKey] : null;
18}
19
20function getDefaultHighWaterMark(objectMode) {
21 return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;

Callers 1

getHighWaterMarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…