Make it so that drivenengine never changes (only appends) output bytes.

This commit is contained in:
2022-01-06 17:24:32 -05:00
parent 3306281dcc
commit dc2237e5c1
4 changed files with 59 additions and 42 deletions

View File

@@ -347,7 +347,7 @@ public:
// Read the entire contents of the buffer as a string.
//
std::string read_entire_contents();
// Overwrite values previously written to the buffer.
//
// See the comment at the top of this file for an explanation.
@@ -384,6 +384,9 @@ public:
// Copy the entire contents of this streambuffer into another one.
void copy_into(StreamBuffer *sb);
// Transfer the entire contents of this streambuffer into another one.
void transfer_into(StreamBuffer *sb);
// Compare the contents of this streambuffer to another one.
bool contents_equal(const StreamBuffer *sb) const;