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

Method end

packages/effect/src/encoding/Xml.ts:2208–2212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2206 }
2207
2208 end(): void {
2209 // An unpaired high surrogate fails as an invalid character
2210 this.parser.feed(this.surrogate)
2211 this.parser.end()
2212 }
2213}
2214
2215const utf8Length = (lead: number): number => lead >= 0xF0 ? 4 : lead >= 0xE0 ? 3 : lead >= 0xC0 ? 2 : 1

Callers

nothing calls this directly

Calls 2

feedMethod · 0.65
endMethod · 0.65

Tested by

no test coverage detected