MCPcopy Create free account
hub / github.com/Effect-TS/effect / join

Method join

packages/effect/src/encoding/Zip.ts:1060–1074  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1058 let run: Array<Uint8Array> = []
1059 let runLength = 0
1060 const join = () => {
1061 if (run.length === 1) {
1062 out.push(run[0])
1063 } else if (run.length > 1) {
1064 const joined = new Uint8Array(runLength)
1065 let at = 0
1066 for (const chunk of run) {
1067 joined.set(chunk, at)
1068 at += chunk.length
1069 }
1070 out.push(joined)
1071 }
1072 run = []
1073 runLength = 0
1074 }
1075 for (const chunk of this.chunks) {
1076 if (chunk.length >= COPY_LIMIT) {
1077 join()

Callers 15

projectFunction · 0.45
vitest.config.tsFile · 0.45
cli.mjsFile · 0.45
Codegen.test.tsFile · 0.45
Codegen.tsFile · 0.45
Source.test.tsFile · 0.45
Plugin.test.tsFile · 0.45
collectorModuleFunction · 0.45
messageMethod · 0.45

Calls 2

pushMethod · 0.65
setMethod · 0.65

Tested by 15

writeTsconfigFunction · 0.36
stabilityResultFunction · 0.36
bundledEffectModulesFunction · 0.36
writeFixtureFunction · 0.36
runFunction · 0.36
withBucketFunction · 0.36
queryFunction · 0.36
showFunction · 0.36
summarizeDeadlockFunction · 0.36
runFunction · 0.36