Jpp
15.0.0
the software that should make you happy
|
Input file stream buffer. More...
#include <JFileStreamBuffer.hh>
Public Types | |
typedef traits_type::int_type | int_type |
Public Member Functions | |
JFileInputStreamBuffer (const JAbstractFile &file, const std::size_t size=65536, const std::size_t put_back=8) | |
Constructor. More... | |
virtual int_type | underflow () override |
Check underflow. More... | |
bool | in_avail (JTimeval timeout=JTimeval::min()) const |
Check availability of input. More... | |
Protected Attributes | |
JFile | in |
std::size_t | memory |
Input file stream buffer.
Definition at line 25 of file JFileStreamBuffer.hh.
typedef traits_type::int_type JLANG::JFileInputStreamBuffer::int_type |
Definition at line 32 of file JFileStreamBuffer.hh.
|
inline |
Constructor.
file | file |
size | size of internal buffer |
put_back | number of put back characters |
Definition at line 42 of file JFileStreamBuffer.hh.
|
inlineoverridevirtual |
Check underflow.
This method reads as many bytes as possible.
Definition at line 60 of file JFileStreamBuffer.hh.
|
inline |
Check availability of input.
This method returns true if at least one byte can be read without blocking.
timeout | timeout |
Definition at line 94 of file JFileStreamBuffer.hh.
|
protected |
Definition at line 100 of file JFileStreamBuffer.hh.
|
protected |
Definition at line 101 of file JFileStreamBuffer.hh.