#include <fileio.h>
Definition at line 69 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 146 of file fileio.cpp.
147 if (stream_ !=
nullptr) {
◆ CloseFile()
bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 166 of file fileio.cpp.
167 int ret = fclose(stream_);
◆ Read()
bool tesseract::InputBuffer::Read |
( |
std::string * |
out | ) |
|
Definition at line 152 of file fileio.cpp.
153 char buf[BUFSIZ + 1];
155 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
156 if (ferror(stream_)) {
The documentation for this class was generated from the following files: