MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / cloneBuffer

Function cloneBuffer

app/public/socketcluster-client.js:7550–7555  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

7548}
7549
7550function cloneBuffer(val) {
7551 const len = val.length;
7552 const buf = Buffer.allocUnsafe ? Buffer.allocUnsafe(len) : Buffer.from(len);
7553 val.copy(buf);
7554 return buf;
7555}
7556
7557function cloneSymbol(val) {
7558 return valueOf ? Object(valueOf.call(val)) : {};

Callers 1

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