| 546 | } |
| 547 | |
| 548 | ExtMsgReply::ExtMsgReply(ExtMsgHeader* header, const uint8_t* body) : header(nullptr) { |
| 549 | memcpy(&replyHeader, header, sizeof(ExtReplyHeader)); |
| 550 | |
| 551 | const uint8_t* ptr = (const uint8_t*)header + sizeof(ExtReplyHeader); |
| 552 | const uint8_t* eom = (const uint8_t*)header + header->messageLength; |
| 553 | |
| 554 | while (ptr < eom) { |
| 555 | bson::BSONObj doc((const char*)ptr); |
| 556 | ptr += doc.objsize(); |
| 557 | documents.push_back(doc); |
| 558 | } |
| 559 | |
| 560 | ASSERT(ptr == eom); |
| 561 | } |
| 562 | |
| 563 | ExtMsgReply::ExtMsgReply(ExtMsgHeader* header, bson::BSONObj const& query) : header(header), query(query) { |
| 564 | replyHeader.responseTo = header->requestID; |
nothing calls this directly
no outgoing calls
no test coverage detected