MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / readBootstrapInfo

Function readBootstrapInfo

qevercloud/generated/types.cpp:6576–6612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6574}
6575
6576void 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
6615void readEnumEDAMErrorCode(ThriftBinaryBufferReader& r, EDAMErrorCode::type& e) {

Callers 1

Calls 9

ThriftExceptionClass · 0.85
readBootstrapProfileFunction · 0.85
readStructBeginMethod · 0.80
readFieldBeginMethod · 0.80
readListBeginMethod · 0.80
readListEndMethod · 0.80
skipMethod · 0.80
readFieldEndMethod · 0.80
readStructEndMethod · 0.80

Tested by

no test coverage detected