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

Function sizeMismatch

packages/effect/src/encoding/Zip.ts:738–744  ·  view source on GitHub ↗
(path: string, actual: number, expected: number)

Source from the content-addressed store, hash-verified

736const unsupported = (message: string) => new ZipError({ kind: "Unsupported", message })
737
738const sizeMismatch = (path: string, actual: number, expected: number) =>
739 new ZipError({
740 kind: "SizeMismatch",
741 message: `body of ${JSON.stringify(path)} has ${
742 actual > expected ? "at least" : "only"
743 } ${actual} bytes, but its size is ${expected}`
744 })
745
746const LOCAL = 0x04034b50
747const CENTRAL = 0x02014b50

Callers 5

encodeFunction · 0.70
entryMethod · 0.70
dataMethod · 0.70
endMethod · 0.70
readCurrentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected