MCPcopy Create free account
hub / github.com/Alex6357/alloy / readString

Method readString

frontend/src/alloy/buffer.ts:185–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 }
184
185 readString(): string {
186 const len = this.readU32();
187 const bytes = new Uint8Array(this.view.buffer, this.cursor, len);
188 this.cursor += len;
189 return this.stringDecoder.decode(bytes);
190 }
191
192 readEvent(): Event | null {
193 if (this.cursor >= this.view.byteLength) return null;

Callers 1

readEventMethod · 0.95

Calls 1

readU32Method · 0.95

Tested by

no test coverage detected