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

Method writeString16

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

Source from the content-addressed store, hash-verified

77 }
78 }
79 writeString16(str: string) {
80 const encode = new TextEncoder().encode(str);
81 this.write16(encode.length);
82 for (const thing of encode) {
83 this.write8(thing);
84 }
85 }
86 writeStringNo(str: string) {
87 const encode = new TextEncoder().encode(str);
88 for (const thing of encode) {

Callers

nothing calls this directly

Calls 2

write16Method · 0.95
write8Method · 0.95

Tested by

no test coverage detected