diff options
Diffstat (limited to 'hwpfilter/source/hwpfile.cxx')
-rw-r--r-- | hwpfilter/source/hwpfile.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx index f10334707130..f7b78fdf704c 100644 --- a/hwpfilter/source/hwpfile.cxx +++ b/hwpfilter/source/hwpfile.cxx @@ -122,6 +122,13 @@ int HWPFile::SetState(int errcode) return error_code; } +bool HWPFile::Read1b(unsigned char &out) +{ + if (!hiodev || !hiodev->read1b(out)) + return false; + return true; +} + bool HWPFile::Read1b(char &out) { unsigned char tmp8; @@ -150,11 +157,6 @@ bool HWPFile::Read4b(int &out) return true; } -size_t HWPFile::Read1b(void *ptr, size_t nmemb) -{ - return hiodev ? hiodev->read1b(ptr, nmemb) : 0; -} - size_t HWPFile::Read2b(void *ptr, size_t nmemb) { return hiodev ? hiodev->read2b(ptr, nmemb) : 0; |