|
Lines 519-527
Link Here
|
| 519 |
/// See raw_ostream::write_impl. |
519 |
/// See raw_ostream::write_impl. |
| 520 |
void write_impl(const char *Ptr, size_t Size) override; |
520 |
void write_impl(const char *Ptr, size_t Size) override; |
| 521 |
|
521 |
|
| 522 |
/// Return the current position within the stream, not counting the bytes |
522 |
uint64_t current_pos() const override; |
| 523 |
/// currently in the buffer. |
|
|
| 524 |
uint64_t current_pos() const override { return OS.size(); } |
| 525 |
|
523 |
|
| 526 |
public: |
524 |
public: |
| 527 |
explicit raw_string_ostream(std::string &O) : OS(O) {} |
525 |
explicit raw_string_ostream(std::string &O) : OS(O) {} |