projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
return the number of read bytes
[ecparse.git]
/
FileReaderInput.cpp
diff --git
a/FileReaderInput.cpp
b/FileReaderInput.cpp
index
14fc0c6
..
86d5b0f
100644
(file)
--- a/
FileReaderInput.cpp
+++ b/
FileReaderInput.cpp
@@
-16,5
+16,9
@@
int FileReaderInput::read(void* buffer, size_t length) {
size_t readBytes;
readBytes = fread(buffer, 1, length, file);
- return 0;
+ return readBytes;
+}
+
+bool FileReaderInput::isEOF() {
+ return feof(file);
}