MCPcopy Index your code
hub / github.com/socketio/socket.io / totalLength

Function totalLength

client-dist/socket.io.js:501–505  ·  view source on GitHub ↗
(chunks)

Source from the content-addressed store, hash-verified

499 }
500 var TEXT_DECODER;
501 function totalLength(chunks) {
502 return chunks.reduce(function (acc, chunk) {
503 return acc + chunk.length;
504 }, 0);
505 }
506 function concatChunks(chunks, size) {
507 if (chunks[0].length === size) {
508 return chunks.shift();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected