0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd::json::stack: Make completed() return a string_view instead of const_buffer.

This commit is contained in:
Jason Volk 2019-07-30 12:26:02 -07:00
parent e50371f3b5
commit de986d2272
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ struct ircd::json::stack
bool clean() const; ///< Never opened.
bool done() const; ///< Opened and closed.
size_t remaining() const;
const_buffer completed() const;
string_view completed() const;
size_t invalidate_checkpoints();
bool flush(const bool &force = false) noexcept;

View file

@ -826,7 +826,7 @@ ircd::json::stack::rewind(const size_t &bytes)
return amount;
}
ircd::const_buffer
ircd::string_view
ircd::json::stack::completed()
const
{