Add util::binary_stream::eof
This commit is contained in:
parent
4aff648a99
commit
fc2b3bd7fd
1 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,11 @@ namespace psemek::util
|
|||
{
|
||||
std::string_view data;
|
||||
|
||||
bool eof() const
|
||||
{
|
||||
return data.empty();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T read()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue