fclose(file);
}
-int FileReaderInput::read(void* buffer, size_t length) {
+size_t FileReaderInput::read(void* buffer, size_t length) {
size_t readBytes;
readBytes = fread(buffer, 1, length, file);
FileReaderInput(FILE *file);
~FileReaderInput();
- int read(void* buffer, size_t length);
+ size_t read(void* buffer, size_t length);
bool isEOF();
private:
public:
virtual ~ReaderInput();
- virtual int read(void* buffer, size_t length) = 0;
+ virtual size_t read(void* buffer, size_t length) = 0;
virtual bool isEOF() = 0;
};