filter/Filter: clarify Flush() documentation

This commit is contained in:
Max Kellermann 2024-11-05 12:57:50 +01:00
parent d7ae512b5e
commit d6195025fb
1 changed files with 6 additions and 0 deletions

View File

@ -51,7 +51,13 @@ public:
* Flush pending data and return it. This should be called
* repeatedly until it returns nullptr.
*
* After calling this method, this object cannot be used again
* (not even Reset() is allowed).
*
* Throws on error.
*
* @return pending data (will be invalidated by deleting this
* object or by any call to Flush())
*/
virtual std::span<const std::byte> Flush() {
return {};