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

Function isHeaderOnly

packages/effect/src/encoding/Tar.ts:619–619  ·  view source on GitHub ↗
(type: EntryType)

Source from the content-addressed store, hash-verified

617
618// Entries of these types never carry body bytes, whatever their size field says
619const isHeaderOnly = (type: EntryType): boolean => type !== "File" && type !== "Other"
620
621const textEncoder = new TextEncoder()
622// Keeps a leading byte order mark as part of the decoded field

Callers 2

encodeHeaderFunction · 0.85
toHeaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected