| 6574 | } |
| 6575 | |
| 6576 | void readBootstrapInfo(ThriftBinaryBufferReader& r, BootstrapInfo& s) { |
| 6577 | QString fname; |
| 6578 | ThriftFieldType::type fieldType; |
| 6579 | qint16 fieldId; |
| 6580 | bool profiles_isset = false; |
| 6581 | r.readStructBegin(fname); |
| 6582 | while(true) { |
| 6583 | r.readFieldBegin(fname, fieldType, fieldId); |
| 6584 | if(fieldType == ThriftFieldType::T_STOP) break; |
| 6585 | if(fieldId == 1) { |
| 6586 | if(fieldType == ThriftFieldType::T_LIST) { |
| 6587 | profiles_isset = true; |
| 6588 | QList< BootstrapProfile > v; |
| 6589 | quint32 size; |
| 6590 | ThriftFieldType::type elemType; |
| 6591 | r.readListBegin(elemType, size); |
| 6592 | v.reserve(size); |
| 6593 | if(elemType != ThriftFieldType::T_STRUCT) throw ThriftException(ThriftException::Type::INVALID_DATA, "Incorrect list type (BootstrapInfo.profiles)"); |
| 6594 | for(quint32 i = 0; i < size; i++) { |
| 6595 | BootstrapProfile elem; |
| 6596 | readBootstrapProfile(r, elem); |
| 6597 | v.append(elem); |
| 6598 | } |
| 6599 | r.readListEnd(); |
| 6600 | s.profiles = v; |
| 6601 | } else { |
| 6602 | r.skip(fieldType); |
| 6603 | } |
| 6604 | } else |
| 6605 | { |
| 6606 | r.skip(fieldType); |
| 6607 | } |
| 6608 | r.readFieldEnd(); |
| 6609 | } |
| 6610 | r.readStructEnd(); |
| 6611 | if(!profiles_isset) throw ThriftException(ThriftException::Type::INVALID_DATA, "BootstrapInfo.profiles has no value"); |
| 6612 | } |
| 6613 | |
| 6614 | |
| 6615 | void readEnumEDAMErrorCode(ThriftBinaryBufferReader& r, EDAMErrorCode::type& e) { |
no test coverage detected