MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getChunkBytes

Function getChunkBytes

src/utils/udsResponseReader.ts:14–18  ·  view source on GitHub ↗
(chunk: string | Buffer)

Source from the content-addressed store, hash-verified

12}
13
14export function getChunkBytes(chunk: string | Buffer): number {
15 return typeof chunk === 'string'
16 ? Buffer.byteLength(chunk, 'utf8')
17 : chunk.byteLength
18}
19
20function parseResponseLine(line: string): UdsMessage {
21 try {

Callers 1

isPeerAliveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected