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

Function concat

lib/agent.js:28–33  ·  view source on GitHub ↗
(buf1, buf2)

Source from the content-addressed store, hash-verified

26}
27
28function concat(buf1, buf2) {
29 const combined = Buffer.allocUnsafe(buf1.length + buf2.length);
30 buf1.copy(combined, 0);
31 buf2.copy(combined, buf1.length);
32 return combined;
33}
34
35function noop() {}
36

Callers 1

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