MCPcopy
hub / github.com/simstudioai/sim / readStruct

Method readStruct

apps/sim/app/api/tools/evernote/lib/thrift.ts:225–231  ·  view source on GitHub ↗

Read struct fields, calling the handler for each field

(handler: (reader: ThriftReader, fieldId: number, fieldType: number) => void)

Source from the content-addressed store, hash-verified

223
224 /** Read struct fields, calling the handler for each field */
225 readStruct<T>(handler: (reader: ThriftReader, fieldId: number, fieldType: number) => void): void {
226 for (;;) {
227 const { type, id } = this.readFieldBegin()
228 if (type === TYPE_STOP) break
229 handler(this, id, type)
230 }
231 }
232
233 /** Check if this is an exception response */
234 isException(messageType: number): boolean {

Callers 15

readExceptionMethod · 0.95
checkEvernoteExceptionFunction · 0.80
readNotebookFunction · 0.80
readNoteFunction · 0.80
readTagFunction · 0.80
readNoteMetadataFunction · 0.80
listNotebooksFunction · 0.80
getNoteFunction · 0.80
createNoteFunction · 0.80
updateNoteFunction · 0.80
deleteNoteFunction · 0.80
searchNotesFunction · 0.80

Calls 2

readFieldBeginMethod · 0.95
handlerFunction · 0.50

Tested by

no test coverage detected