#include <fileio.h>
Definition at line 57 of file fileio.h.
◆ InputBuffer() [1/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
Definition at line 128 of file fileio.cpp.
131 filesize_ = ftell(stream_);
◆ InputBuffer() [2/2]
tesseract::InputBuffer::InputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
Definition at line 135 of file fileio.cpp.
138 filesize_ = ftell(stream_);
◆ ~InputBuffer()
tesseract::InputBuffer::~InputBuffer |
( |
| ) |
|
Definition at line 142 of file fileio.cpp.
143 if (stream_ !=
nullptr) {
◆ CloseFile()
bool tesseract::InputBuffer::CloseFile |
( |
| ) |
|
Definition at line 162 of file fileio.cpp.
163 int ret = fclose(stream_);
◆ Read()
bool tesseract::InputBuffer::Read |
( |
string * |
out | ) |
|
Definition at line 148 of file fileio.cpp.
149 char buf[BUFSIZ + 1];
151 while ((l = fread(buf, 1, BUFSIZ, stream_)) > 0) {
152 if (ferror(stream_)) {
The documentation for this class was generated from the following files:
- /home/stefan/src/github/tesseract-ocr/tesseract/training/fileio.h
- /home/stefan/src/github/tesseract-ocr/tesseract/training/fileio.cpp