Add util::binary_stream::eof

This commit is contained in:
Nikita Lisitsa 2021-07-13 11:42:15 +03:00
parent 4aff648a99
commit fc2b3bd7fd

View file

@ -66,6 +66,11 @@ namespace psemek::util
{
std::string_view data;
bool eof() const
{
return data.empty();
}
template <typename T>
T read()
{