MCPcopy
hub / github.com/vercel-labs/wterm / writeString

Method writeString

packages/@wterm/core/src/wasm-bridge.ts:112–115  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

110 }
111
112 writeString(str: string): void {
113 const encoded = this.encoder.encode(str);
114 this.writeRaw(encoded);
115 }
116
117 writeRaw(data: Uint8Array): void {
118 const buf = new Uint8Array(this.memory.buffer, this.writeBufferPtr, 8192);

Callers 2

writeMethod · 0.80

Calls 1

writeRawMethod · 0.95

Tested by

no test coverage detected