MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / ExtMsgReply

Method ExtMsgReply

src/ExtMsg.actor.cpp:548–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548ExtMsgReply::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
563ExtMsgReply::ExtMsgReply(ExtMsgHeader* header, bson::BSONObj const& query) : header(header), query(query) {
564 replyHeader.responseTo = header->requestID;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected