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

Method constructor

frontend/src/alloy/buffer.ts:42–45  ·  view source on GitHub ↗
(capacity: number = 4096)

Source from the content-addressed store, hash-verified

40 private stringEncoder = new TextEncoder();
41
42 constructor(capacity: number = 4096) {
43 this.buffer = new Uint8Array(capacity);
44 this.view = new DataView(this.buffer.buffer);
45 }
46
47 writeU8(value: number): void {
48 if (this.cursor + 1 > this.buffer.length) this.expand();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected