MCPcopy Index your code
hub / github.com/nodejs/node / mergeBuf

Function mergeBuf

lib/internal/streams/fast-utf8-stream.js:906–916  ·  view source on GitHub ↗
(bufs, len)

Source from the content-addressed store, hash-verified

904}
905
906function mergeBuf(bufs, len) {
907 if (bufs.length === 0) {
908 return kEmptyBuffer;
909 }
910
911 if (bufs.length === 1) {
912 return bufs[0];
913 }
914
915 return Buffer.concat(bufs, len);
916}
917
918module.exports = Utf8Stream;

Callers 2

#actualWriteBufferMethod · 0.85
#flushBufferSyncMethod · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…