Read struct fields, calling the handler for each field
(handler: (reader: ThriftReader, fieldId: number, fieldType: number) => void)
| 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 { |
no test coverage detected