#include <fileio.h>
Definition at line 55 of file fileio.h.
◆ InputBuffer() [1/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
Definition at line 129 of file fileio.cpp.
131 fseek(stream_, 0, SEEK_END);
132 filesize_ = ftell(stream_);
133 fseek(stream_, 0, SEEK_SET);
◆ InputBuffer() [2/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
Definition at line 136 of file fileio.cpp.
138 fseek(stream_, 0, SEEK_END);
139 filesize_ = ftell(stream_);
140 fseek(stream_, 0, SEEK_SET);
◆ ~InputBuffer()
tesseract::InputBuffer::~InputBuffer |
( |
| ) |
|
Definition at line 143 of file fileio.cpp.
144 if (stream_ !=
nullptr) {
◆ CloseFile()
bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 163 of file fileio.cpp.
164 int ret = fclose(stream_);
◆ Read()
bool tesseract::InputBuffer::Read |
( |
std::string * |
out | ) |
|
Definition at line 149 of file fileio.cpp.
150 char buf[BUFSIZ + 1];
152 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
153 if (ferror(stream_)) {
The documentation for this class was generated from the following files:
- /usr/src/tesseract-ocr.master/src/ccutil/fileio.h
- /usr/src/tesseract-ocr.master/src/ccutil/fileio.cpp