MCPcopy Create free account
hub / github.com/denoland/std / flush

Method flush

encoding/unstable_base32_stream.ts:109–118  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

107 controller.enqueue(decode(output.subarray(0, o)));
108 },
109 flush(controller) {
110 if (remainder) {
111 const [output, i] = detach(
112 push.subarray(0, remainder),
113 calcSizeBase32(remainder),
114 );
115 encode(output, i, 0, abc, padding);
116 controller.enqueue(decode(output));
117 }
118 },
119 });
120 }
121}

Callers

nothing calls this directly

Calls 4

detachFunction · 0.90
calcSizeBase32Function · 0.90
encodeFunction · 0.90
decodeFunction · 0.90

Tested by

no test coverage detected