io/Reader: add [[nodiscard]]

This commit is contained in:
Max Kellermann 2023-10-05 11:01:46 +02:00
parent 3032792563
commit a9ba9a5f92

View File

@ -26,6 +26,7 @@ public:
* @return the number of bytes read into the given buffer or 0
* on end-of-stream
*/
[[nodiscard]]
virtual std::size_t Read(std::span<std::byte> dest) = 0;
/**