#include <fileio.h>
Definition at line 58 of file fileio.h.
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
Definition at line 135 of file fileio.cpp.
137 fseek(stream_, 0, SEEK_END);
138 filesize_ = ftell(stream_);
139 fseek(stream_, 0, SEEK_SET);
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
Definition at line 142 of file fileio.cpp.
144 fseek(stream_, 0, SEEK_END);
145 filesize_ = ftell(stream_);
146 fseek(stream_, 0, SEEK_SET);
tesseract::InputBuffer::~InputBuffer |
( |
| ) |
|
bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 169 of file fileio.cpp.
170 int ret = fclose(stream_);
bool tesseract::InputBuffer::Read |
( |
string * |
out | ) |
|
Definition at line 155 of file fileio.cpp.
156 char buf[BUFSIZ + 1];
158 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
159 if (ferror(stream_)) {
The documentation for this class was generated from the following files: