input/async: pass std::span to AppendToBuffer()

This commit is contained in:
Max Kellermann
2022-11-17 06:10:55 +01:00
parent ce13d82657
commit c71958af4b
4 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ protected:
* Append data to the buffer. The size must fit into the
* buffer; see GetBufferSpace().
*/
void AppendToBuffer(const void *data, size_t append_size) noexcept;
void AppendToBuffer(std::span<const std::byte> src) noexcept;
/**
* Implement code here that will resume the stream after it