MCPcopy Create free account
hub / github.com/denoland/celld / end

Method end

crates/celld/js/node_stream.js:59–67  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

57 ).toString(this.encoding);
58 }
59 end(buf) {
60 let out = buf !== undefined && buf.length ? this.write(buf) : "";
61 if (this.__td) out += this.__td.decode();
62 else if (this.__rem) {
63 out += this.__rem.toString(this.encoding);
64 this.__rem = null;
65 }
66 return out;
67 }
68 text(buf, offset) { return this.write(buf.slice(offset)); }
69 }
70

Callers 8

onendFunction · 0.80
onEofChunkFunction · 0.80
endWritableNTFunction · 0.80
_duplexifyFunction · 0.80
pumpFunction · 0.80
pipelineImplFunction · 0.80
pipeFunction · 0.80

Calls 3

writeMethod · 0.95
decodeMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected