MCPcopy Create free account
hub / github.com/github/copilot-sdk / decodeChunkData

Function decodeChunkData

nodejs/src/copilotRequestHandler.ts:744–749  ·  view source on GitHub ↗
(data: string, binary: boolean)

Source from the content-addressed store, hash-verified

742}
743
744function decodeChunkData(data: string, binary: boolean): Uint8Array {
745 if (binary) {
746 return new Uint8Array(Buffer.from(data, "base64"));
747 }
748 return sharedTextEncoder.encode(data);
749}
750
751function decodeFrame(chunk: Uint8Array): string {
752 return sharedTextDecoder.decode(chunk);

Callers 1

routeChunkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…