MCPcopy
hub / github.com/socketio/socket.io / totalLength

Function totalLength

packages/engine.io-parser/lib/index.ts:83–85  ·  view source on GitHub ↗
(chunks: Uint8Array[])

Source from the content-addressed store, hash-verified

81let TEXT_DECODER;
82
83function totalLength(chunks: Uint8Array[]) {
84 return chunks.reduce((acc, chunk) => acc + chunk.length, 0);
85}
86
87function concatChunks(chunks: Uint8Array[], size: number) {
88 if (chunks[0].length === size) {

Callers 1

transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected