A read cursor can be initialized from a pop cursor
| 661 | |
| 662 | // A read cursor can be initialized from a pop cursor |
| 663 | void initReadOnly(const Cursor& c, bool readExtents = false) { |
| 664 | ASSERT(c.mode == READONLY || c.mode == POP); |
| 665 | init(c.queue, READONLY, c.pageID, readExtents, false, c.endPageID, c.offset); |
| 666 | } |
| 667 | |
| 668 | std::string toString() const { |
| 669 | if (mode == WRITE) { |
no test coverage detected