#include <fileio.h>
Definition at line 57 of file fileio.h.
◆ InputBuffer() [1/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
Definition at line 130 of file fileio.cpp.
132 fseek(stream_, 0, SEEK_END);
133 filesize_ = ftell(stream_);
134 fseek(stream_, 0, SEEK_SET);
◆ InputBuffer() [2/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
Definition at line 137 of file fileio.cpp.
139 fseek(stream_, 0, SEEK_END);
140 filesize_ = ftell(stream_);
141 fseek(stream_, 0, SEEK_SET);
◆ ~InputBuffer()
tesseract::InputBuffer::~InputBuffer |
( |
| ) |
|
Definition at line 144 of file fileio.cpp.
145 if (stream_ != NULL) {
◆ CloseFile()
bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 164 of file fileio.cpp.
165 int ret = fclose(stream_);
◆ Read()
bool tesseract::InputBuffer::Read |
( |
string * |
out | ) |
|
Definition at line 150 of file fileio.cpp.
151 char buf[BUFSIZ + 1];
153 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
154 if (ferror(stream_)) {
The documentation for this class was generated from the following files: