MCPcopy Index your code
hub / github.com/codeaashu/claude-code / captureCarry

Function captureCarry

src/utils/sessionStoragePortable.ts:689–697  ·  view source on GitHub ↗
(s: LoadState, buf: Buffer, trailStart: number)

Source from the content-addressed store, hash-verified

687}
688
689function captureCarry(s: LoadState, buf: Buffer, trailStart: number): void {
690 s.carryLen = buf.length - trailStart
691 if (s.carryLen > 0) {
692 if (s.carryBuf === undefined || s.carryLen > s.carryBuf.length) {
693 s.carryBuf = Buffer.allocUnsafe(s.carryLen)
694 }
695 buf.copy(s.carryBuf, 0, trailStart, buf.length)
696 }
697}
698
699function finalizeOutput(s: LoadState): void {
700 if (s.carryLen > 0) {

Callers 1

readTranscriptForLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected