MCPcopy Create free account
hub / github.com/MathMan05/Fermi / writeString8

Method writeString8

src/webpage/utils/binaryUtils.ts:72–78  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

70 this.i += 1;
71 }
72 writeString8(str: string) {
73 const encode = new TextEncoder().encode(str);
74 this.write8(encode.length);
75 for (const thing of encode) {
76 this.write8(thing);
77 }
78 }
79 writeString16(str: string) {
80 const encode = new TextEncoder().encode(str);
81 this.write16(encode.length);

Callers 1

page.tsFile · 0.80

Calls 1

write8Method · 0.95

Tested by

no test coverage detected