MCPcopy Create free account
hub / github.com/mscdex/ssh2 / tryCreateBuffer

Function tryCreateBuffer

lib/protocol/SFTP.js:2093–2099  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

2091}
2092
2093function tryCreateBuffer(size) {
2094 try {
2095 return Buffer.allocUnsafe(size);
2096 } catch (ex) {
2097 return ex;
2098 }
2099}
2100
2101function read_(self, handle, buf, off, len, position, cb, req_) {
2102 const maxDataLen = self._maxReadLen;

Callers 1

tryStatFunction · 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…