MCPcopy Create free account
hub / github.com/simstudioai/sim / writeString

Method writeString

apps/sim/app/api/tools/evernote/lib/thrift.ts:36–42  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

34 }
35
36 writeString(value: string): void {
37 const encoded = new TextEncoder().encode(value)
38 this.writeI32(encoded.length)
39 for (const byte of encoded) {
40 this.buffer.push(byte)
41 }
42 }
43
44 writeBool(value: boolean): void {
45 this.buffer.push(value ? 1 : 0)

Callers 3

writeMessageBeginMethod · 0.95
writeStringFieldMethod · 0.95
writeStringListFieldMethod · 0.95

Calls 2

writeI32Method · 0.95
pushMethod · 0.45

Tested by

no test coverage detected