X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams
lib
/
node_modules
/
npm
/
node_modules
/
readable-stream
/
lib
/
internal
/
streams
/
ðŸ“
..
📄
async_iterator.js
(5.82 KB)
📄
buffer_list.js
(6.19 KB)
📄
destroy.js
(3.04 KB)
📄
end-of-stream.js
(3.03 KB)
📄
from-browser.js
(101 B)
📄
from.js
(3.06 KB)
📄
pipeline.js
(2.37 KB)
📄
state.js
(749 B)
📄
stream-browser.js
(49 B)
📄
stream.js
(36 B)
Editing: state.js
'use strict'; var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE; function highWaterMarkFrom(options, isDuplex, duplexKey) { return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; } function getHighWaterMark(state, options, duplexKey, isDuplex) { var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); if (hwm != null) { if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { var name = isDuplex ? duplexKey : 'highWaterMark'; throw new ERR_INVALID_OPT_VALUE(name, hwm); } return Math.floor(hwm); } // Default value return state.objectMode ? 16 : 16 * 1024; } module.exports = { getHighWaterMark: getHighWaterMark };
Upload File
Create Folder