mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 01:01:35 +01:00
Add wuffs_base__io_reader__is_eof
This commit is contained in:
1 parent
128e6c06bb
commit
abe08bc6f6
9 files changed
+59
-42
No files matched your search
@@ -23,8 +23,7 @@
|
||||
|
||||
template short_read(string qPKGPREFIXq, string qnameq) {
|
||||
short_read_qnameq:
|
||||
if (a_qnameq.private_impl.buf && a_qnameq.private_impl.buf->closed &&
|
||||
!a_qnameq.private_impl.limit.ptr_to_len) {
|
||||
if (wuffs_base__io_reader__is_eof(a_qnameq)) {
|
||||
status = qPKGPREFIXqERROR_UNEXPECTED_EOF;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user