$11 GRAYBYTE WORDPRESS FILE MANAGER $28

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams/

HOME
Current File : /lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams//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
};

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
async_iterator.js
5.817 KB
10 Mar 2021 9.36 PM
root / root
0644
buffer_list.js
6.187 KB
10 Mar 2021 9.36 PM
root / root
0644
destroy.js
3.044 KB
10 Mar 2021 9.36 PM
root / root
0644
end-of-stream.js
3.029 KB
10 Mar 2021 9.36 PM
root / root
0644
from-browser.js
0.099 KB
10 Mar 2021 9.36 PM
root / root
0644
from.js
3.063 KB
10 Mar 2021 9.36 PM
root / root
0644
pipeline.js
2.371 KB
10 Mar 2021 9.36 PM
root / root
0644
state.js
0.731 KB
10 Mar 2021 9.36 PM
root / root
0644
stream-browser.js
0.048 KB
10 Mar 2021 9.36 PM
root / root
0644
stream.js
0.035 KB
10 Mar 2021 9.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF