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

Function allocNewPool

lib/protocol/SFTP.js:3611–3617  ·  view source on GitHub ↗
(poolSize)

Source from the content-addressed store, hash-verified

3609const poolFragments = [];
3610
3611function allocNewPool(poolSize) {
3612 if (poolFragments.length > 0)
3613 pool = poolFragments.pop();
3614 else
3615 pool = Buffer.allocUnsafe(poolSize);
3616 pool.used = 0;
3617}
3618
3619// Check the `this.start` and `this.end` of stream.
3620function checkPosition(pos, name) {

Callers 1

SFTP.jsFile · 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…