#include <fileio.h>
Definition at line 70 of file fileio.h.
◆ InputBuffer() [1/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
◆ InputBuffer() [2/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
◆ ~InputBuffer()
tesseract::InputBuffer::~InputBuffer |
( |
| ) |
|
Definition at line 138 of file fileio.cpp.
139 if (stream_ !=
nullptr) {
◆ CloseFile()
bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 158 of file fileio.cpp.
159 int ret = fclose(stream_);
◆ Read()
bool tesseract::InputBuffer::Read |
( |
std::string * |
out | ) |
|
Definition at line 144 of file fileio.cpp.
145 char buf[BUFSIZ + 1];
147 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
148 if (ferror(stream_)) {
The documentation for this class was generated from the following files: