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

Function decodeBytes

packages/effect/test/encoding/Xml.test.ts:25–29  ·  view source on GitHub ↗
(chunks: ReadonlyArray<Uint8Array>, options?: Xml.DecodeOptions)

Source from the content-addressed store, hash-verified

23 )
24
25const decodeBytes = (chunks: ReadonlyArray<Uint8Array>, options?: Xml.DecodeOptions) =>
26 Stream.fromIterable(chunks, { chunkSize: 1 }).pipe(
27 Stream.pipeThroughChannel(Xml.decode(options)),
28 Stream.runCollect
29 )
30
31const encodeString = (events: ReadonlyArray<Xml.Event>) =>
32 Stream.fromIterable(events).pipe(

Callers 1

Xml.test.tsFile · 0.85

Calls 2

pipeMethod · 0.65
decodeMethod · 0.45

Tested by

no test coverage detected