#include <fileio.h>
Definition at line 55 of file fileio.h.
| tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
Definition at line 134 of file fileio.cpp.
136 fseek(stream_, 0, SEEK_END);
137 filesize_ = ftell(stream_);
138 fseek(stream_, 0, SEEK_SET);
| tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
Definition at line 141 of file fileio.cpp.
143 fseek(stream_, 0, SEEK_END);
144 filesize_ = ftell(stream_);
145 fseek(stream_, 0, SEEK_SET);
| tesseract::InputBuffer::~InputBuffer |
( |
| ) |
|
Definition at line 148 of file fileio.cpp.
149 if (stream_ !=
nullptr) {
| bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 168 of file fileio.cpp.
169 int ret = fclose(stream_);
| bool tesseract::InputBuffer::Read |
( |
std::string * |
out | ) |
|
Definition at line 154 of file fileio.cpp.
155 char buf[BUFSIZ + 1];
157 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
158 if (ferror(stream_)) {
The documentation for this class was generated from the following files: