MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / SyncMemoryWriter

Function SyncMemoryWriter

samples/util.js:178–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176exports.MemoryWriter = MemoryWriter;
177var SyncMemoryWriter = /** @class */ (function () {
178 function SyncMemoryWriter() {
179 this.chunks = [];
180 this._closed = false;
181 this._byteCount = 0;
182 this.enc = new TextEncoder();
183 }
184 Object.defineProperty(SyncMemoryWriter.prototype, "desiredSize", {
185 get: function () {
186 return this._closed ? null : 100;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected