Get down to a single write call

This commit is contained in:
Ian Gulliver
2019-04-28 18:19:32 +00:00
parent d486533dfc
commit 9d4f3241fe
8 changed files with 82 additions and 87 deletions

View File

@@ -26,6 +26,7 @@ class Buffer : public ConstBuffer {
[[nodiscard]] char *WritePtr();
[[nodiscard]] size_t WriteMaxLen() const;
bool Write(const std::string_view& str);
void Wrote(size_t len);
void Commit(); // commit read position